this.BX=this.BX||{};(function(exports){"use strict";
/*!
	 * Lottie-web v5.9.6
	 * Copyright (c) 2015 Bodymovin
	 * @license MIT
	 *
	 * @source: https://unpkg.com/lottie-web@5.9.6/build/player/esm/lottie.min.js
	 */const svgNS="http://www.w3.org/2000/svg";let locationHref="";let _useWebWorker=false;const initialDefaultFrame=-999999;const setWebWorker=t=>{_useWebWorker=!!t};const getWebWorker=()=>_useWebWorker;const setLocationHref=t=>{locationHref=t};const getLocationHref=()=>locationHref;function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r;var i=t.length;var a;for(r=0;r<i;r+=1){a=t[r].prototype;for(var s in a){if(Object.prototype.hasOwnProperty.call(a,s))e.prototype[s]=a[s]}}}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}e.prototype=t;return e}const audioControllerFactory=function(){function t(t){this.audios=[];this.audioFactory=t;this._volume=1;this._isMuted=false}t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t;var e=this.audios.length;for(t=0;t<e;t+=1){this.audios[t].pause()}},resume:function(){var t;var e=this.audios.length;for(t=0;t<e;t+=1){this.audios[t].resume()}},setRate:function(t){var e;var r=this.audios.length;for(e=0;e<r;e+=1){this.audios[e].setRate(t)}},createAudio:function(t){if(this.audioFactory){return this.audioFactory(t)}if(window.Howl){return new window.Howl({src:[t]})}return{isPlaying:false,play:function(){this.isPlaying=true},seek:function(){this.isPlaying=false},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t;this._updateVolume()},mute:function(){this._isMuted=true;this._updateVolume()},unmute:function(){this._isMuted=false;this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t;var e=this.audios.length;for(t=0;t<e;t+=1){this.audios[t].volume(this._volume*(this._isMuted?0:1))}}};return function(){return new t}}();const createTypedArray=function(){function t(t,e){var r=0;var i=[];var a;switch(t){case"int16":case"uint8c":a=1;break;default:a=1.1;break}for(r=0;r<e;r+=1){i.push(a)}return i}function e(e,r){if(e==="float32"){return new Float32Array(r)}if(e==="int16"){return new Int16Array(r)}if(e==="uint8c"){return new Uint8ClampedArray(r)}return t(e,r)}if(typeof Uint8ClampedArray==="function"&&typeof Float32Array==="function"){return e}return t}();function createSizedArray(t){return Array.apply(null,{length:t})}let subframeEnabled=true;let expressionsPlugin=null;let idPrefix$1="";const isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);const bmPow=Math.pow;const bmSqrt=Math.sqrt;const bmFloor=Math.floor;const bmMax=Math.max;const bmMin=Math.min;const BMMath={};(function(){var t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"];var e;var r=t.length;for(e=0;e<r;e+=1){BMMath[t[e]]=Math[t[e]]}})();BMMath.random=Math.random;BMMath.abs=function(t){var e=typeof t;if(e==="object"&&t.length){var r=createSizedArray(t.length);var i;var a=t.length;for(i=0;i<a;i+=1){r[i]=Math.abs(t[i])}return r}return Math.abs(t)};let defaultCurveSegments=150;const degToRads=Math.PI/180;const roundCorner=.5519;function styleDiv(t){t.style.position="absolute";t.style.top=0;t.style.left=0;t.style.display="block";t.style.transformOrigin="0 0";t.style.webkitTransformOrigin="0 0";t.style.backfaceVisibility="visible";t.style.webkitBackfaceVisibility="visible";t.style.transformStyle="preserve-3d";t.style.webkitTransformStyle="preserve-3d";t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,i){this.type=t;this.currentTime=e;this.totalTime=r;this.direction=i<0?-1:1}function BMCompleteEvent(t,e){this.type=t;this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,i){this.type=t;this.currentLoop=r;this.totalLoops=e;this.direction=i<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t;this.firstFrame=e;this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t;this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError";this.nativeError=t;this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError";this.nativeError=t}const createElementID=function(){var t=0;return function e(){t+=1;return idPrefix$1+"__lottie_element_"+t}}();function HSVtoRGB(t,e,r){var i;var a;var s;var n;var o;var h;var l;var f;n=Math.floor(t*6);o=t*6-n;h=r*(1-e);l=r*(1-o*e);f=r*(1-(1-o)*e);switch(n%6){case 0:i=r;a=f;s=h;break;case 1:i=l;a=r;s=h;break;case 2:i=h;a=r;s=f;break;case 3:i=h;a=l;s=r;break;case 4:i=f;a=h;s=r;break;case 5:i=r;a=h;s=l;break;default:break}return[i,a,s]}function RGBtoHSV(t,e,r){var i=Math.max(t,e,r);var a=Math.min(t,e,r);var s=i-a;var n;var o=i===0?0:s/i;var h=i/255;switch(i){case a:n=0;break;case t:n=e-r+s*(e<r?6:0);n/=6*s;break;case e:n=r-t+s*2;n/=6*s;break;case r:n=t-e+s*4;n/=6*s;break;default:break}return[n,o,h]}function addSaturationToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);r[1]+=e;if(r[1]>1){r[1]=1}else if(r[1]<=0){r[1]=0}return HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);r[2]+=e;if(r[2]>1){r[2]=1}else if(r[2]<0){r[2]=0}return HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);r[0]+=e/360;if(r[0]>1){r[0]-=1}else if(r[0]<0){r[0]+=1}return HSVtoRGB(r[0],r[1],r[2])}const rgbToHex=function(){var t=[];var e;var r;for(e=0;e<256;e+=1){r=e.toString(16);t[e]=r.length===1?"0"+r:r}return function(e,r,i){if(e<0){e=0}if(r<0){r=0}if(i<0){i=0}return"#"+t[e]+t[r]+t[i]}}();const setSubframeEnabled=t=>{subframeEnabled=!!t};const getSubframeEnabled=()=>subframeEnabled;const setExpressionsPlugin=t=>{expressionsPlugin=t};const getExpressionsPlugin=()=>expressionsPlugin;const setDefaultCurveSegments=t=>{defaultCurveSegments=t};const getDefaultCurveSegments=()=>defaultCurveSegments;const setIdPrefix=t=>{idPrefix$1=t};function createNS(t){return document.createElementNS(svgNS,t)}const dataManager=function(){var t=1;var e=[];var r;var i;var a={onmessage:function(){},postMessage:function(t){r({data:t})}};var s={postMessage:function(t){a.onmessage({data:t})}};function n(t){if(window.Worker&&window.Blob&&getWebWorker()){var e=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"});var i=URL.createObjectURL(e);return new Worker(i)}r=t;return a}function o(){if(!i){i=n((function t(e){function r(){function t(e,r){var n;var o;var h=e.length;var l;var f;var p;var m;for(o=0;o<h;o+=1){n=e[o];if("ks"in n&&!n.completed){n.completed=true;if(n.tt){e[o-1].td=n.tt}if(n.hasMask){var u=n.masksProperties;f=u.length;for(l=0;l<f;l+=1){if(u[l].pt.k.i){s(u[l].pt.k)}else{m=u[l].pt.k.length;for(p=0;p<m;p+=1){if(u[l].pt.k[p].s){s(u[l].pt.k[p].s[0])}if(u[l].pt.k[p].e){s(u[l].pt.k[p].e[0])}}}}}if(n.ty===0){n.layers=i(n.refId,r);t(n.layers,r)}else if(n.ty===4){a(n.shapes)}else if(n.ty===5){c(n)}}}}function e(e,r){if(e){var a=0;var s=e.length;for(a=0;a<s;a+=1){if(e[a].t===1){e[a].data.layers=i(e[a].data.refId,r);t(e[a].data.layers,r)}}}}function r(t,e){var r=0;var i=e.length;while(r<i){if(e[r].id===t){return e[r]}r+=1}return null}function i(t,e){var i=r(t,e);if(i){if(!i.layers.__used){i.layers.__used=true;return i.layers}return JSON.parse(JSON.stringify(i.layers))}return null}function a(t){var e;var r=t.length;var i;var n;for(e=r-1;e>=0;e-=1){if(t[e].ty==="sh"){if(t[e].ks.k.i){s(t[e].ks.k)}else{n=t[e].ks.k.length;for(i=0;i<n;i+=1){if(t[e].ks.k[i].s){s(t[e].ks.k[i].s[0])}if(t[e].ks.k[i].e){s(t[e].ks.k[i].e[0])}}}}else if(t[e].ty==="gr"){a(t[e].it)}}}function s(t){var e;var r=t.i.length;for(e=0;e<r;e+=1){t.i[e][0]+=t.v[e][0];t.i[e][1]+=t.v[e][1];t.o[e][0]+=t.v[e][0];t.o[e][1]+=t.v[e][1]}}function n(t,e){var r=e?e.split("."):[100,100,100];if(t[0]>r[0]){return true}if(r[0]>t[0]){return false}if(t[1]>r[1]){return true}if(r[1]>t[1]){return false}if(t[2]>r[2]){return true}if(r[2]>t[2]){return false}return null}var o=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function r(t){var r;var i=t.length;for(r=0;r<i;r+=1){if(t[r].ty===5){e(t[r])}}}return function(e){if(n(t,e.v)){r(e.layers);if(e.assets){var i;var a=e.assets.length;for(i=0;i<a;i+=1){if(e.assets[i].layers){r(e.assets[i].layers)}}}}}}();var h=function(){var t=[4,7,99];return function(e){if(e.chars&&!n(t,e.v)){var r;var i=e.chars.length;for(r=0;r<i;r+=1){var s=e.chars[r];if(s.data&&s.data.shapes){a(s.data.shapes);s.data.ip=0;s.data.op=99999;s.data.st=0;s.data.sr=1;s.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}};if(!e.chars[r].t){s.data.shapes.push({ty:"no"});s.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})}}}}}}();var l=function(){var t=[5,7,15];function e(t){var e=t.t.p;if(typeof e.a==="number"){e.a={a:0,k:e.a}}if(typeof e.p==="number"){e.p={a:0,k:e.p}}if(typeof e.r==="number"){e.r={a:0,k:e.r}}}function r(t){var r;var i=t.length;for(r=0;r<i;r+=1){if(t[r].ty===5){e(t[r])}}}return function(e){if(n(t,e.v)){r(e.layers);if(e.assets){var i;var a=e.assets.length;for(i=0;i<a;i+=1){if(e.assets[i].layers){r(e.assets[i].layers)}}}}}}();var f=function(){var t=[4,1,9];function e(t){var r;var i=t.length;var a;var s;for(r=0;r<i;r+=1){if(t[r].ty==="gr"){e(t[r].it)}else if(t[r].ty==="fl"||t[r].ty==="st"){if(t[r].c.k&&t[r].c.k[0].i){s=t[r].c.k.length;for(a=0;a<s;a+=1){if(t[r].c.k[a].s){t[r].c.k[a].s[0]/=255;t[r].c.k[a].s[1]/=255;t[r].c.k[a].s[2]/=255;t[r].c.k[a].s[3]/=255}if(t[r].c.k[a].e){t[r].c.k[a].e[0]/=255;t[r].c.k[a].e[1]/=255;t[r].c.k[a].e[2]/=255;t[r].c.k[a].e[3]/=255}}}else{t[r].c.k[0]/=255;t[r].c.k[1]/=255;t[r].c.k[2]/=255;t[r].c.k[3]/=255}}}}function r(t){var r;var i=t.length;for(r=0;r<i;r+=1){if(t[r].ty===4){e(t[r].shapes)}}}return function(e){if(n(t,e.v)){r(e.layers);if(e.assets){var i;var a=e.assets.length;for(i=0;i<a;i+=1){if(e.assets[i].layers){r(e.assets[i].layers)}}}}}}();var p=function(){var t=[4,4,18];function e(t){var r;var i=t.length;var a;var s;for(r=i-1;r>=0;r-=1){if(t[r].ty==="sh"){if(t[r].ks.k.i){t[r].ks.k.c=t[r].closed}else{s=t[r].ks.k.length;for(a=0;a<s;a+=1){if(t[r].ks.k[a].s){t[r].ks.k[a].s[0].c=t[r].closed}if(t[r].ks.k[a].e){t[r].ks.k[a].e[0].c=t[r].closed}}}}else if(t[r].ty==="gr"){e(t[r].it)}}}function r(t){var r;var i;var a=t.length;var s;var n;var o;var h;for(i=0;i<a;i+=1){r=t[i];if(r.hasMask){var l=r.masksProperties;n=l.length;for(s=0;s<n;s+=1){if(l[s].pt.k.i){l[s].pt.k.c=l[s].cl}else{h=l[s].pt.k.length;for(o=0;o<h;o+=1){if(l[s].pt.k[o].s){l[s].pt.k[o].s[0].c=l[s].cl}if(l[s].pt.k[o].e){l[s].pt.k[o].e[0].c=l[s].cl}}}}}if(r.ty===4){e(r.shapes)}}}return function(e){if(n(t,e.v)){r(e.layers);if(e.assets){var i;var a=e.assets.length;for(i=0;i<a;i+=1){if(e.assets[i].layers){r(e.assets[i].layers)}}}}}}();function m(r){if(r.__complete){return}f(r);o(r);h(r);l(r);p(r);t(r.layers,r.assets);e(r.chars,r.assets);r.__complete=true}function c(t){if(t.t.a.length===0&&!("m"in t.t.p));}var u={};u.completeData=m;u.checkColors=f;u.checkChars=h;u.checkPathProperties=l;u.checkShapes=p;u.completeLayers=t;return u}if(!s.dataManager){s.dataManager=r()}if(!s.assetLoader){s.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");if(e&&t.responseType==="json"&&e.indexOf("json")!==-1){return t.response}if(t.response&&typeof t.response==="object"){return t.response}if(t.response&&typeof t.response==="string"){return JSON.parse(t.response)}if(t.responseText){return JSON.parse(t.responseText)}return null}function e(e,r,i,a){var s;var n=new XMLHttpRequest;try{n.responseType="json"}catch(t){}n.onreadystatechange=function(){if(n.readyState===4){if(n.status===200){s=t(n);i(s)}else{try{s=t(n);i(s)}catch(t){if(a){a(t)}}}}};try{n.open("GET",e,true)}catch(t){n.open("GET",r+"/"+e,true)}n.send()}return{load:e}}()}if(e.data.type==="loadAnimation"){s.assetLoader.load(e.data.path,e.data.fullPath,(function(t){s.dataManager.completeData(t);s.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){s.postMessage({id:e.data.id,status:"error"})}))}else if(e.data.type==="complete"){var i=e.data.animation;s.dataManager.completeData(i);s.postMessage({id:e.data.id,payload:i,status:"success"})}else if(e.data.type==="loadData"){s.assetLoader.load(e.data.path,e.data.fullPath,(function(t){s.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){s.postMessage({id:e.data.id,status:"error"})}))}}));i.onmessage=function(t){var r=t.data;var i=r.id;var a=e[i];e[i]=null;if(r.status==="success"){a.onComplete(r.payload)}else if(a.onError){a.onError()}}}}function h(r,i){t+=1;var a="processId_"+t;e[a]={onComplete:r,onError:i};return a}function l(t,e,r){o();var a=h(e,r);i.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:a})}function f(t,e,r){o();var a=h(e,r);i.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:a})}function p(t,e,r){o();var a=h(e,r);i.postMessage({type:"complete",animation:t,id:a})}return{loadAnimation:l,loadData:f,completeAnimation:p}}();const ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1;t.height=1;var e=t.getContext("2d");e.fillStyle="rgba(0,0,0,0)";e.fillRect(0,0,1,1);return t}();function e(){this.loadedAssets+=1;if(this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages){if(this.imagesLoadedCb){this.imagesLoadedCb(null)}}}function r(){this.loadedFootagesCount+=1;if(this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages){if(this.imagesLoadedCb){this.imagesLoadedCb(null)}}}function i(t,e,r){var i="";if(t.e){i=t.p}else if(e){var a=t.p;if(a.indexOf("images/")!==-1){a=a.split("/")[1]}i=e+a}else{i=r;i+=t.u?t.u:"";i+=t.p}return i}function a(t){var e=0;var r=setInterval(function(){var i=t.getBBox();if(i.width||e>500){this._imageLoaded();clearInterval(r)}e+=1}.bind(this),50)}function s(e){var r=i(e,this.assetsPath,this.path);var a=createNS("image");if(isSafari){this.testImageLoaded(a)}else{a.addEventListener("load",this._imageLoaded,false)}a.addEventListener("error",function(){s.img=t;this._imageLoaded()}.bind(this),false);a.setAttributeNS("http://www.w3.org/1999/xlink","href",r);if(this._elementHelper.append){this._elementHelper.append(a)}else{this._elementHelper.appendChild(a)}var s={img:a,assetData:e};return s}function n(e){var r=i(e,this.assetsPath,this.path);var a=createTag("img");a.crossOrigin="anonymous";a.addEventListener("load",this._imageLoaded,false);a.addEventListener("error",function(){s.img=t;this._imageLoaded()}.bind(this),false);a.src=r;var s={img:a,assetData:e};return s}function o(t){var e={assetData:t};var r=i(t,this.assetsPath,this.path);dataManager.loadData(r,function(t){e.img=t;this._footageLoaded()}.bind(this),function(){e.img={};this._footageLoaded()}.bind(this));return e}function h(t,e){this.imagesLoadedCb=e;var r;var i=t.length;for(r=0;r<i;r+=1){if(!t[r].layers){if(!t[r].t||t[r].t==="seq"){this.totalImages+=1;this.images.push(this._createImageData(t[r]))}else if(t[r].t===3){this.totalFootages+=1;this.images.push(this.createFootageData(t[r]))}}}}function l(t){this.path=t||""}function f(t){this.assetsPath=t||""}function p(t){var e=0;var r=this.images.length;while(e<r){if(this.images[e].assetData===t){return this.images[e].img}e+=1}return null}function m(){this.imagesLoadedCb=null;this.images.length=0}function c(){return this.totalImages===this.loadedAssets}function u(){return this.totalFootages===this.loadedFootagesCount}function d(t,e){if(t==="svg"){this._elementHelper=e;this._createImageData=this.createImageData.bind(this)}else{this._createImageData=this.createImgData.bind(this)}}function v(){this._imageLoaded=e.bind(this);this._footageLoaded=r.bind(this);this.testImageLoaded=a.bind(this);this.createFootageData=o.bind(this);this.assetsPath="";this.path="";this.totalImages=0;this.totalFootages=0;this.loadedAssets=0;this.loadedFootagesCount=0;this.imagesLoadedCb=null;this.images=[]}v.prototype={loadAssets:h,setAssetsPath:f,setPath:l,loadedImages:c,loadedFootages:u,destroy:m,getAsset:p,createImgData:n,createImageData:s,imageLoaded:e,footageLoaded:r,setCacheType:d};return v}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t]){var r=this._cbs[t];for(var i=0;i<r.length;i+=1){r[i](e)}}},addEventListener:function(t,e){if(!this._cbs[t]){this._cbs[t]=[]}this._cbs[t].push(e);return function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(!e){this._cbs[t]=null}else if(this._cbs[t]){var r=0;var i=this._cbs[t].length;while(r<i){if(this._cbs[t][r]===e){this._cbs[t].splice(r,1);r-=1;i-=1}r+=1}if(!this._cbs[t].length){this._cbs[t]=null}}}};const markerParser=function(){function t(t){var e=t.split("\r\n");var r={};var i;var a=0;for(var s=0;s<e.length;s+=1){i=e[s].split(":");if(i.length===2){r[i[0]]=i[1].trim();a+=1}}if(a===0){throw new Error}return r}return function(e){var r=[];for(var i=0;i<e.length;i+=1){var a=e[i];var s={time:a.tm,duration:a.dr};try{s.payload=JSON.parse(e[i].cm)}catch(r){try{s.payload=t(e[i].cm)}catch(t){s.payload={name:e[i].cm}}}r.push(s)}return r}}();const ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){var e=0;var r=this.compositions.length;while(e<r){if(this.compositions[e].data&&this.compositions[e].data.nm===t){if(this.compositions[e].prepareFrame&&this.compositions[e].data.xt){this.compositions[e].prepareFrame(this.currentFrame)}return this.compositions[e].compInterface}e+=1}return null}e.compositions=[];e.currentFrame=0;e.registerComposition=t;return e}}();const renderers={};const registerRenderer=(t,e)=>{renderers[t]=e};function getRenderer(t){return renderers[t]}const AnimationItem=function(){this._cbs=[];this.name="";this.path="";this.isLoaded=false;this.currentFrame=0;this.currentRawFrame=0;this.firstFrame=0;this.totalFrames=0;this.frameRate=0;this.frameMult=0;this.playSpeed=1;this.playDirection=1;this.playCount=0;this.animationData={};this.assets=[];this.isPaused=true;this.autoplay=false;this.loop=true;this.renderer=null;this.animationID=createElementID();this.assetsPath="";this.timeCompleted=0;this.segmentPos=0;this.isSubframeEnabled=getSubframeEnabled();this.segments=[];this._idle=true;this._completedLoop=false;this.projectInterface=ProjectInterface();this.imagePreloader=new ImagePreloader;this.audioController=audioControllerFactory();this.markers=[];this.configAnimation=this.configAnimation.bind(this);this.onSetupError=this.onSetupError.bind(this);this.onSegmentComplete=this.onSegmentComplete.bind(this);this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem);AnimationItem.prototype.setParams=function(t){if(t.wrapper||t.container){this.wrapper=t.wrapper||t.container}var e="svg";if(t.animType){e=t.animType}else if(t.renderer){e=t.renderer}const r=getRenderer(e);this.renderer=new r(this,t.rendererSettings);this.imagePreloader.setCacheType(e,this.renderer.globalData.defs);this.renderer.setProjectInterface(this.projectInterface);this.animType=e;if(t.loop===""||t.loop===null||t.loop===undefined||t.loop===true){this.loop=true}else if(t.loop===false){this.loop=false}else{this.loop=parseInt(t.loop,10)}this.autoplay="autoplay"in t?t.autoplay:true;this.name=t.name?t.name:"";this.autoloadSegments=Object.prototype.hasOwnProperty.call(t,"autoloadSegments")?t.autoloadSegments:true;this.assetsPath=t.assetsPath;this.initialSegment=t.initialSegment;if(t.audioFactory){this.audioController.setAudioFactory(t.audioFactory)}if(t.animationData){this.setupAnimation(t.animationData)}else if(t.path){if(t.path.lastIndexOf("\\")!==-1){this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1)}else{this.path=t.path.substr(0,t.path.lastIndexOf("/")+1)}this.fileName=t.path.substr(t.path.lastIndexOf("/")+1);this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json"));dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError)}};AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")};AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)};AnimationItem.prototype.setData=function(t,e){if(e){if(typeof e!=="object"){e=JSON.parse(e)}}var r={wrapper:t,animationData:e};var i=t.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"";r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:"canvas";var a=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";if(a==="false"){r.loop=false}else if(a==="true"){r.loop=true}else if(a!==""){r.loop=parseInt(a,10)}var s=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:i.getNamedItem("bm-autoplay")?i.getNamedItem("bm-autoplay").value:true;r.autoplay=s!=="false";r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"";var n=i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"";if(n==="false"){r.prerender=false}this.setParams(r)};AnimationItem.prototype.includeLayers=function(t){if(t.op>this.animationData.op){this.animationData.op=t.op;this.totalFrames=Math.floor(t.op-this.animationData.ip)}var e=this.animationData.layers;var r;var i=e.length;var a=t.layers;var s;var n=a.length;for(s=0;s<n;s+=1){r=0;while(r<i){if(e[r].id===a[s].id){e[r]=a[s];break}r+=1}}if(t.chars||t.fonts){this.renderer.globalData.fontManager.addChars(t.chars);this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)}if(t.assets){i=t.assets.length;for(r=0;r<i;r+=1){this.animationData.assets.push(t.assets[r])}}this.animationData.__complete=false;dataManager.completeAnimation(this.animationData,this.onSegmentComplete)};AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();if(e){e.initExpressions(this)}this.loadNextSegment()};AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments){this.trigger("data_ready");this.timeCompleted=this.totalFrames;return}var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1;dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))};AnimationItem.prototype.loadSegments=function(){var t=this.animationData.segments;if(!t){this.timeCompleted=this.totalFrames}this.loadNextSegment()};AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images");this.checkLoaded()};AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath);this.imagePreloader.setPath(this.path);this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))};AnimationItem.prototype.configAnimation=function(t){if(!this.renderer){return}try{this.animationData=t;if(this.initialSegment){this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]);this.firstFrame=Math.round(this.initialSegment[0])}else{this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip);this.firstFrame=Math.round(this.animationData.ip)}this.renderer.configAnimation(t);if(!t.assets){t.assets=[]}this.assets=this.animationData.assets;this.frameRate=this.animationData.fr;this.frameMult=this.animationData.fr/1e3;this.renderer.searchExtraCompositions(t.assets);this.markers=markerParser(t.markers||[]);this.trigger("config_ready");this.preloadImages();this.loadSegments();this.updaFrameModifier();this.waitForFontsLoaded();if(this.isPaused){this.audioController.pause()}}catch(t){this.triggerConfigError(t)}};AnimationItem.prototype.waitForFontsLoaded=function(){if(!this.renderer){return}if(this.renderer.globalData.fontManager.isLoaded){this.checkLoaded()}else{setTimeout(this.waitForFontsLoaded.bind(this),20)}};AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=true;var t=getExpressionsPlugin();if(t){t.initExpressions(this)}this.renderer.initItems();setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0);this.gotoFrame();if(this.autoplay){this.play()}}};AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()};AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t};AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame;if(this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted){this.currentFrame=this.timeCompleted}this.trigger("enterFrame");this.renderFrame();this.trigger("drawnFrame")};AnimationItem.prototype.renderFrame=function(){if(this.isLoaded===false||!this.renderer){return}try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}};AnimationItem.prototype.play=function(t){if(t&&this.name!==t){return}if(this.isPaused===true){this.isPaused=false;this.trigger("_pause");this.audioController.resume();if(this._idle){this._idle=false;this.trigger("_active")}}};AnimationItem.prototype.pause=function(t){if(t&&this.name!==t){return}if(this.isPaused===false){this.isPaused=true;this.trigger("_play");this._idle=true;this.trigger("_idle");this.audioController.pause()}};AnimationItem.prototype.togglePause=function(t){if(t&&this.name!==t){return}if(this.isPaused===true){this.play()}else{this.pause()}};AnimationItem.prototype.stop=function(t){if(t&&this.name!==t){return}this.pause();this.playCount=0;this._completedLoop=false;this.setCurrentRawFrameValue(0)};AnimationItem.prototype.getMarkerData=function(t){var e;for(var r=0;r<this.markers.length;r+=1){e=this.markers[r];if(e.payload&&e.payload.name===t){return e}}return null};AnimationItem.prototype.goToAndStop=function(t,e,r){if(r&&this.name!==r){return}var i=Number(t);if(isNaN(i)){var a=this.getMarkerData(t);if(a){this.goToAndStop(a.time,true)}}else if(e){this.setCurrentRawFrameValue(t)}else{this.setCurrentRawFrameValue(t*this.frameModifier)}this.pause()};AnimationItem.prototype.goToAndPlay=function(t,e,r){if(r&&this.name!==r){return}var i=Number(t);if(isNaN(i)){var a=this.getMarkerData(t);if(a){if(!a.duration){this.goToAndStop(a.time,true)}else{this.playSegments([a.time,a.time+a.duration],true)}}}else{this.goToAndStop(i,e,r)}this.play()};AnimationItem.prototype.advanceTime=function(t){if(this.isPaused===true||this.isLoaded===false){return}var e=this.currentRawFrame+t*this.frameModifier;var r=false;if(e>=this.totalFrames-1&&this.frameModifier>0){if(!this.loop||this.playCount===this.loop){if(!this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)){r=true;e=this.totalFrames-1}}else if(e>=this.totalFrames){this.playCount+=1;if(!this.checkSegments(e%this.totalFrames)){this.setCurrentRawFrameValue(e%this.totalFrames);this._completedLoop=true;this.trigger("loopComplete")}}else{this.setCurrentRawFrameValue(e)}}else if(e<0){if(!this.checkSegments(e%this.totalFrames)){if(this.loop&&!(this.playCount--<=0&&this.loop!==true)){this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames);if(!this._completedLoop){this._completedLoop=true}else{this.trigger("loopComplete")}}else{r=true;e=0}}}else{this.setCurrentRawFrameValue(e)}if(r){this.setCurrentRawFrameValue(e);this.pause();this.trigger("complete")}};AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0;if(t[1]<t[0]){if(this.frameModifier>0){if(this.playSpeed<0){this.setSpeed(-this.playSpeed)}else{this.setDirection(-1)}}this.totalFrames=t[0]-t[1];this.timeCompleted=this.totalFrames;this.firstFrame=t[1];this.setCurrentRawFrameValue(this.totalFrames-.001-e)}else if(t[1]>t[0]){if(this.frameModifier<0){if(this.playSpeed<0){this.setSpeed(-this.playSpeed)}else{this.setDirection(1)}}this.totalFrames=t[1]-t[0];this.timeCompleted=this.totalFrames;this.firstFrame=t[0];this.setCurrentRawFrameValue(.001+e)}this.trigger("segmentStart")};AnimationItem.prototype.setSegment=function(t,e){var r=-1;if(this.isPaused){if(this.currentRawFrame+this.firstFrame<t){r=t}else if(this.currentRawFrame+this.firstFrame>e){r=e-t}}this.firstFrame=t;this.totalFrames=e-t;this.timeCompleted=this.totalFrames;if(r!==-1){this.goToAndStop(r,true)}};AnimationItem.prototype.playSegments=function(t,e){if(e){this.segments.length=0}if(typeof t[0]==="object"){var r;var i=t.length;for(r=0;r<i;r+=1){this.segments.push(t[r])}}else{this.segments.push(t)}if(this.segments.length&&e){this.adjustSegment(this.segments.shift(),0)}if(this.isPaused){this.play()}};AnimationItem.prototype.resetSegments=function(t){this.segments.length=0;this.segments.push([this.animationData.ip,this.animationData.op]);if(t){this.checkSegments(0)}};AnimationItem.prototype.checkSegments=function(t){if(this.segments.length){this.adjustSegment(this.segments.shift(),t);return true}return false};AnimationItem.prototype.destroy=function(t){if(t&&this.name!==t||!this.renderer){return}this.renderer.destroy();this.imagePreloader.destroy();this.trigger("destroy");this._cbs=null;this.onEnterFrame=null;this.onLoopComplete=null;this.onComplete=null;this.onSegmentStart=null;this.onDestroy=null;this.renderer=null;this.renderer=null;this.imagePreloader=null;this.projectInterface=null};AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t;this.gotoFrame()};AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t;this.updaFrameModifier()};AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1;this.updaFrameModifier()};AnimationItem.prototype.setVolume=function(t,e){if(e&&this.name!==e){return}this.audioController.setVolume(t)};AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()};AnimationItem.prototype.mute=function(t){if(t&&this.name!==t){return}this.audioController.mute()};AnimationItem.prototype.unmute=function(t){if(t&&this.name!==t){return}this.audioController.unmute()};AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection;this.audioController.setRate(this.playSpeed*this.playDirection)};AnimationItem.prototype.getPath=function(){return this.path};AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e){e=t.p}else if(this.assetsPath){var r=t.p;if(r.indexOf("images/")!==-1){r=r.split("/")[1]}e=this.assetsPath+r}else{e=this.path;e+=t.u?t.u:"";e+=t.p}return e};AnimationItem.prototype.getAssetData=function(t){var e=0;var r=this.assets.length;while(e<r){if(t===this.assets[e].id){return this.assets[e]}e+=1}return null};AnimationItem.prototype.hide=function(){this.renderer.hide()};AnimationItem.prototype.show=function(){this.renderer.show()};AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate};AnimationItem.prototype.updateDocumentData=function(t,e,r){try{var i=this.renderer.getElementByPath(t);i.updateDocumentData(e,r)}catch(t){}};AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t]){switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame;this.drawnFrameEvent.totalTime=this.totalFrames;this.drawnFrameEvent.direction=this.frameModifier;this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}}if(t==="enterFrame"&&this.onEnterFrame){this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult))}if(t==="loopComplete"&&this.onLoopComplete){this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult))}if(t==="complete"&&this.onComplete){this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult))}if(t==="segmentStart"&&this.onSegmentStart){this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames))}if(t==="destroy"&&this.onDestroy){this.onDestroy.call(this,new BMDestroyEvent(t,this))}};AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e);if(this.onError){this.onError.call(this,e)}};AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e);if(this.onError){this.onError.call(this,e)}};const animationManager=function(){var t={};var e=[];var r=0;var i=0;var a=0;var s=true;var n=false;function o(t){var r=0;var a=t.target;while(r<i){if(e[r].animation===a){e.splice(r,1);r-=1;i-=1;if(!a.isPaused){p()}}r+=1}}function h(t,r){if(!t){return null}var a=0;while(a<i){if(e[a].elem===t&&e[a].elem!==null){return e[a].animation}a+=1}var s=new AnimationItem;m(s,t);s.setData(t,r);return s}function l(){var t;var r=e.length;var i=[];for(t=0;t<r;t+=1){i.push(e[t].animation)}return i}function f(){a+=1;_()}function p(){a-=1}function m(t,r){t.addEventListener("destroy",o);t.addEventListener("_active",f);t.addEventListener("_idle",p);e.push({elem:r,animation:t});i+=1}function c(t){var e=new AnimationItem;m(e,null);e.setParams(t);return e}function u(t,r){var a;for(a=0;a<i;a+=1){e[a].animation.setSpeed(t,r)}}function d(t,r){var a;for(a=0;a<i;a+=1){e[a].animation.setDirection(t,r)}}function v(t){var r;for(r=0;r<i;r+=1){e[r].animation.play(t)}}function y(t){var o=t-r;var h;for(h=0;h<i;h+=1){e[h].animation.advanceTime(o)}r=t;if(a&&!n){window.requestAnimationFrame(y)}else{s=true}}function g(t){r=t;window.requestAnimationFrame(y)}function b(t){var r;for(r=0;r<i;r+=1){e[r].animation.pause(t)}}function P(t,r,a){var s;for(s=0;s<i;s+=1){e[s].animation.goToAndStop(t,r,a)}}function E(t){var r;for(r=0;r<i;r+=1){e[r].animation.stop(t)}}function x(t){var r;for(r=0;r<i;r+=1){e[r].animation.togglePause(t)}}function S(t){var r;for(r=i-1;r>=0;r-=1){e[r].animation.destroy(t)}}function C(t,e,r){var i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin")));var a;var s=i.length;for(a=0;a<s;a+=1){if(r){i[a].setAttribute("data-bm-type",r)}h(i[a],t)}if(e&&s===0){if(!r){r="svg"}var n=document.getElementsByTagName("body")[0];n.innerText="";var o=createTag("div");o.style.width="100%";o.style.height="100%";o.setAttribute("data-bm-type",r);n.appendChild(o);h(o,t)}}function A(){var t;for(t=0;t<i;t+=1){e[t].animation.resize()}}function _(){if(!n&&a){if(s){window.requestAnimationFrame(g);s=false}}}function k(){n=true}function T(){n=false;_()}function D(t,r){var a;for(a=0;a<i;a+=1){e[a].animation.setVolume(t,r)}}function M(t){var r;for(r=0;r<i;r+=1){e[r].animation.mute(t)}}function w(t){var r;for(r=0;r<i;r+=1){e[r].animation.unmute(t)}}t.registerAnimation=h;t.loadAnimation=c;t.setSpeed=u;t.setDirection=d;t.play=v;t.pause=b;t.stop=E;t.togglePause=x;t.searchAnimations=C;t.resize=A;t.goToAndStop=P;t.destroy=S;t.freeze=k;t.unfreeze=T;t.setVolume=D;t.mute=M;t.unmute=w;t.getRegisteredAnimations=l;return t}();const BezierFactory=function(){var t={};t.getBezierEasing=r;var e={};function r(t,r,i,a,s){var n=s||("bez_"+t+"_"+r+"_"+i+"_"+a).replace(/\./g,"p");if(e[n]){return e[n]}var o=new y([t,r,i,a]);e[n]=o;return o}var i=4;var a=.001;var s=1e-7;var n=10;var o=11;var h=1/(o-1);var l=typeof Float32Array==="function";function f(t,e){return 1-3*e+3*t}function p(t,e){return 3*e-6*t}function m(t){return 3*t}function c(t,e,r){return((f(e,r)*t+p(e,r))*t+m(e))*t}function u(t,e,r){return 3*f(e,r)*t*t+2*p(e,r)*t+m(e)}function d(t,e,r,i,a){var o,h,l=0;do{h=e+(r-e)/2;o=c(h,i,a)-t;if(o>0){r=h}else{e=h}}while(Math.abs(o)>s&&++l<n);return h}function v(t,e,r,a){for(var s=0;s<i;++s){var n=u(e,r,a);if(n===0)return e;var o=c(e,r,a)-t;e-=o/n}return e}function y(t){this._p=t;this._mSampleValues=l?new Float32Array(o):new Array(o);this._precomputed=false;this.get=this.get.bind(this)}y.prototype={get:function(t){var e=this._p[0],r=this._p[1],i=this._p[2],a=this._p[3];if(!this._precomputed)this._precompute();if(e===r&&i===a)return t;if(t===0)return 0;if(t===1)return 1;return c(this._getTForX(t),r,a)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],i=this._p[3];this._precomputed=true;if(t!==e||r!==i){this._calcSampleValues()}},_calcSampleValues:function(){var t=this._p[0],e=this._p[2];for(var r=0;r<o;++r){this._mSampleValues[r]=c(r*h,t,e)}},_getTForX:function(t){var e=this._p[0],r=this._p[2],i=this._mSampleValues;var s=0;var n=1;var l=o-1;for(;n!==l&&i[n]<=t;++n){s+=h}--n;var f=(t-i[n])/(i[n+1]-i[n]);var p=s+f*h;var m=u(p,e,r);if(m>=a){return v(t,p,e,r)}if(m===0){return p}return d(t,s,s+h,e,r)}};return t}();const pooling=function(){function t(t){return t.concat(createSizedArray(t.length))}return{double:t}}();const poolFactory=function(){return function(t,e,r){var i=0;var a=t;var s=createSizedArray(a);var n={newElement:o,release:h};function o(){var t;if(i){i-=1;t=s[i]}else{t=e()}return t}function h(t){if(i===a){s=pooling.double(s);a*=2}if(r){r(t)}s[i]=t;i+=1}return n}}();const bezierLengthPool=function(){function t(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,t)}();const segmentsLengthPool=function(){function t(){return{lengths:[],totalLength:0}}function e(t){var e;var r=t.lengths.length;for(e=0;e<r;e+=1){bezierLengthPool.release(t.lengths[e])}t.lengths.length=0}return poolFactory(8,t,e)}();function bezFunction(){var t=Math;function e(t,e,r,i,a,s){var n=t*i+e*a+r*s-a*i-s*t-r*e;return n>-.001&&n<.001}function r(r,i,a,s,n,o,h,l,f){if(a===0&&o===0&&f===0){return e(r,i,s,n,h,l)}var p=t.sqrt(t.pow(s-r,2)+t.pow(n-i,2)+t.pow(o-a,2));var m=t.sqrt(t.pow(h-r,2)+t.pow(l-i,2)+t.pow(f-a,2));var c=t.sqrt(t.pow(h-s,2)+t.pow(l-n,2)+t.pow(f-o,2));var u;if(p>m){if(p>c){u=p-m-c}else{u=c-m-p}}else if(c>m){u=c-m-p}else{u=m-p-c}return u>-1e-4&&u<1e-4}var i=function(){return function(t,e,r,i){var a=getDefaultCurveSegments();var s;var n;var o;var h;var l;var f=0;var p;var m=[];var c=[];var u=bezierLengthPool.newElement();o=r.length;for(s=0;s<a;s+=1){l=s/(a-1);p=0;for(n=0;n<o;n+=1){h=bmPow(1-l,3)*t[n]+3*bmPow(1-l,2)*l*r[n]+3*(1-l)*bmPow(l,2)*i[n]+bmPow(l,3)*e[n];m[n]=h;if(c[n]!==null){p+=bmPow(m[n]-c[n],2)}c[n]=m[n]}if(p){p=bmSqrt(p);f+=p}u.percents[s]=l;u.lengths[s]=f}u.addedLength=f;return u}}();function a(t){var e=segmentsLengthPool.newElement();var r=t.c;var a=t.v;var s=t.o;var n=t.i;var o;var h=t._length;var l=e.lengths;var f=0;for(o=0;o<h-1;o+=1){l[o]=i(a[o],a[o+1],s[o],n[o+1]);f+=l[o].addedLength}if(r&&h){l[o]=i(a[o],a[0],s[o],n[0]);f+=l[o].addedLength}e.totalLength=f;return e}function s(t){this.segmentLength=0;this.points=new Array(t)}function n(t,e){this.partialLength=t;this.point=e}var o=function(){var t={};return function(r,i,a,o){var h=(r[0]+"_"+r[1]+"_"+i[0]+"_"+i[1]+"_"+a[0]+"_"+a[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!t[h]){var l=getDefaultCurveSegments();var f;var p;var m;var c;var u;var d=0;var v;var y;var g=null;if(r.length===2&&(r[0]!==i[0]||r[1]!==i[1])&&e(r[0],r[1],i[0],i[1],r[0]+a[0],r[1]+a[1])&&e(r[0],r[1],i[0],i[1],i[0]+o[0],i[1]+o[1])){l=2}var b=new s(l);m=a.length;for(f=0;f<l;f+=1){y=createSizedArray(m);u=f/(l-1);v=0;for(p=0;p<m;p+=1){c=bmPow(1-u,3)*r[p]+3*bmPow(1-u,2)*u*(r[p]+a[p])+3*(1-u)*bmPow(u,2)*(i[p]+o[p])+bmPow(u,3)*i[p];y[p]=c;if(g!==null){v+=bmPow(y[p]-g[p],2)}}v=bmSqrt(v);d+=v;b.points[f]=new n(v,y);g=y}b.segmentLength=d;t[h]=b}return t[h]}}();function h(t,e){var r=e.percents;var i=e.lengths;var a=r.length;var s=bmFloor((a-1)*t);var n=t*e.addedLength;var o=0;if(s===a-1||s===0||n===i[s]){return r[s]}var h=i[s]>n?-1:1;var l=true;while(l){if(i[s]<=n&&i[s+1]>n){o=(n-i[s])/(i[s+1]-i[s]);l=false}else{s+=h}if(s<0||s>=a-1){if(s===a-1){return r[s]}l=false}}return r[s]+(r[s+1]-r[s])*o}function l(e,r,i,a,s,n){var o=h(s,n);var l=1-o;var f=t.round((l*l*l*e[0]+(o*l*l+l*o*l+l*l*o)*i[0]+(o*o*l+l*o*o+o*l*o)*a[0]+o*o*o*r[0])*1e3)/1e3;var p=t.round((l*l*l*e[1]+(o*l*l+l*o*l+l*l*o)*i[1]+(o*o*l+l*o*o+o*l*o)*a[1]+o*o*o*r[1])*1e3)/1e3;return[f,p]}var f=createTypedArray("float32",8);function p(e,r,i,a,s,n,o){if(s<0){s=0}else if(s>1){s=1}var l=h(s,o);n=n>1?1:n;var p=h(n,o);var m;var c=e.length;var u=1-l;var d=1-p;var v=u*u*u;var y=l*u*u*3;var g=l*l*u*3;var b=l*l*l;var P=u*u*d;var E=l*u*d+u*l*d+u*u*p;var x=l*l*d+u*l*p+l*u*p;var S=l*l*p;var C=u*d*d;var A=l*d*d+u*p*d+u*d*p;var _=l*p*d+u*p*p+l*d*p;var k=l*p*p;var T=d*d*d;var D=p*d*d+d*p*d+d*d*p;var M=p*p*d+d*p*p+p*d*p;var w=p*p*p;for(m=0;m<c;m+=1){f[m*4]=t.round((v*e[m]+y*i[m]+g*a[m]+b*r[m])*1e3)/1e3;f[m*4+1]=t.round((P*e[m]+E*i[m]+x*a[m]+S*r[m])*1e3)/1e3;f[m*4+2]=t.round((C*e[m]+A*i[m]+_*a[m]+k*r[m])*1e3)/1e3;f[m*4+3]=t.round((T*e[m]+D*i[m]+M*a[m]+w*r[m])*1e3)/1e3}return f}return{getSegmentsLength:a,getNewSegment:p,getPointInSegment:l,buildBezierData:o,pointOnLine2D:e,pointOnLine3D:r}}const bez=bezFunction();const PropertyFactory=function(){var t=initialDefaultFrame;var e=Math.abs;function r(t,e){var r=this.offsetTime;var n;if(this.propType==="multidimensional"){n=createTypedArray("float32",this.pv.length)}var o=e.lastIndex;var h=o;var l=this.keyframes.length-1;var f=true;var p;var m;var c;while(f){p=this.keyframes[h];m=this.keyframes[h+1];if(h===l-1&&t>=m.t-r){if(p.h){p=m}o=0;break}if(m.t-r>t){o=h;break}if(h<l-1){h+=1}else{o=0;f=false}}c=this.keyframesMetadata[h]||{};var u;var d;var v;var y;var g;var b;var P=m.t-r;var E=p.t-r;var x;if(p.to){if(!c.bezierData){c.bezierData=bez.buildBezierData(p.s,m.s||p.e,p.to,p.ti)}var S=c.bezierData;if(t>=P||t<E){var C=t>=P?S.points.length-1:0;d=S.points[C].point.length;for(u=0;u<d;u+=1){n[u]=S.points[C].point[u]}}else{if(c.__fnct){b=c.__fnct}else{b=BezierFactory.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y,p.n).get;c.__fnct=b}v=b((t-E)/(P-E));var A=S.segmentLength*v;var _;var k=e.lastFrame<t&&e._lastKeyframeIndex===h?e._lastAddedLength:0;g=e.lastFrame<t&&e._lastKeyframeIndex===h?e._lastPoint:0;f=true;y=S.points.length;while(f){k+=S.points[g].partialLength;if(A===0||v===0||g===S.points.length-1){d=S.points[g].point.length;for(u=0;u<d;u+=1){n[u]=S.points[g].point[u]}break}else if(A>=k&&A<k+S.points[g+1].partialLength){_=(A-k)/S.points[g+1].partialLength;d=S.points[g].point.length;for(u=0;u<d;u+=1){n[u]=S.points[g].point[u]+(S.points[g+1].point[u]-S.points[g].point[u])*_}break}if(g<y-1){g+=1}else{f=false}}e._lastPoint=g;e._lastAddedLength=k-S.points[g].partialLength;e._lastKeyframeIndex=h}}else{var T;var D;var M;var w;var F;l=p.s.length;x=m.s||p.e;if(this.sh&&p.h!==1){if(t>=P){n[0]=x[0];n[1]=x[1];n[2]=x[2]}else if(t<=E){n[0]=p.s[0];n[1]=p.s[1];n[2]=p.s[2]}else{var I=s(p.s);var B=s(x);var V=(t-E)/(P-E);a(n,i(I,B,V))}}else{for(h=0;h<l;h+=1){if(p.h!==1){if(t>=P){v=1}else if(t<E){v=0}else{if(p.o.x.constructor===Array){if(!c.__fnct){c.__fnct=[]}if(!c.__fnct[h]){T=p.o.x[h]===undefined?p.o.x[0]:p.o.x[h];D=p.o.y[h]===undefined?p.o.y[0]:p.o.y[h];M=p.i.x[h]===undefined?p.i.x[0]:p.i.x[h];w=p.i.y[h]===undefined?p.i.y[0]:p.i.y[h];b=BezierFactory.getBezierEasing(T,D,M,w).get;c.__fnct[h]=b}else{b=c.__fnct[h]}}else if(!c.__fnct){T=p.o.x;D=p.o.y;M=p.i.x;w=p.i.y;b=BezierFactory.getBezierEasing(T,D,M,w).get;p.keyframeMetadata=b}else{b=c.__fnct}v=b((t-E)/(P-E))}}x=m.s||p.e;F=p.h===1?p.s[h]:p.s[h]+(x[h]-p.s[h])*v;if(this.propType==="multidimensional"){n[h]=F}else{n=F}}}}e.lastIndex=o;return n}function i(t,e,r){var i=[];var a=t[0];var s=t[1];var n=t[2];var o=t[3];var h=e[0];var l=e[1];var f=e[2];var p=e[3];var m;var c;var u;var d;var v;c=a*h+s*l+n*f+o*p;if(c<0){c=-c;h=-h;l=-l;f=-f;p=-p}if(1-c>1e-6){m=Math.acos(c);u=Math.sin(m);d=Math.sin((1-r)*m)/u;v=Math.sin(r*m)/u}else{d=1-r;v=r}i[0]=d*a+v*h;i[1]=d*s+v*l;i[2]=d*n+v*f;i[3]=d*o+v*p;return i}function a(t,e){var r=e[0];var i=e[1];var a=e[2];var s=e[3];var n=Math.atan2(2*i*s-2*r*a,1-2*i*i-2*a*a);var o=Math.asin(2*r*i+2*a*s);var h=Math.atan2(2*r*s-2*i*a,1-2*r*r-2*a*a);t[0]=n/degToRads;t[1]=o/degToRads;t[2]=h/degToRads}function s(t){var e=t[0]*degToRads;var r=t[1]*degToRads;var i=t[2]*degToRads;var a=Math.cos(e/2);var s=Math.cos(r/2);var n=Math.cos(i/2);var o=Math.sin(e/2);var h=Math.sin(r/2);var l=Math.sin(i/2);var f=a*s*n-o*h*l;var p=o*h*n+a*s*l;var m=o*s*n+a*h*l;var c=a*h*n-o*s*l;return[p,m,c,f]}function n(){var e=this.comp.renderedFrame-this.offsetTime;var r=this.keyframes[0].t-this.offsetTime;var i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<r&&e<r))){if(this._caching.lastFrame>=e){this._caching._lastKeyframeIndex=-1;this._caching.lastIndex=0}var a=this.interpolateValue(e,this._caching);this.pv=a}this._caching.lastFrame=e;return this.pv}function o(t){var r;if(this.propType==="unidimensional"){r=t*this.mult;if(e(this.v-r)>1e-5){this.v=r;this._mdf=true}}else{var i=0;var a=this.v.length;while(i<a){r=t[i]*this.mult;if(e(this.v[i]-r)>1e-5){this.v[i]=r;this._mdf=true}i+=1}}}function h(){if(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length){return}if(this.lock){this.setVValue(this.pv);return}this.lock=true;this._mdf=this._isFirstFrame;var t;var e=this.effectsSequence.length;var r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1){r=this.effectsSequence[t](r)}this.setVValue(r);this._isFirstFrame=false;this.lock=false;this.frameId=this.elem.globalData.frameId}function l(t){this.effectsSequence.push(t);this.container.addDynamicProperty(this)}function f(t,e,r,i){this.propType="unidimensional";this.mult=r||1;this.data=e;this.v=r?e.k*r:e.k;this.pv=e.k;this._mdf=false;this.elem=t;this.container=i;this.comp=t.comp;this.k=false;this.kf=false;this.vel=0;this.effectsSequence=[];this._isFirstFrame=true;this.getValue=h;this.setVValue=o;this.addEffect=l}function p(t,e,r,i){this.propType="multidimensional";this.mult=r||1;this.data=e;this._mdf=false;this.elem=t;this.container=i;this.comp=t.comp;this.k=false;this.kf=false;this.frameId=-1;var a;var s=e.k.length;this.v=createTypedArray("float32",s);this.pv=createTypedArray("float32",s);this.vel=createTypedArray("float32",s);for(a=0;a<s;a+=1){this.v[a]=e.k[a]*this.mult;this.pv[a]=e.k[a]}this._isFirstFrame=true;this.effectsSequence=[];this.getValue=h;this.setVValue=o;this.addEffect=l}function m(e,i,a,s){this.propType="unidimensional";this.keyframes=i.k;this.keyframesMetadata=[];this.offsetTime=e.data.st;this.frameId=-1;this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1};this.k=true;this.kf=true;this.data=i;this.mult=a||1;this.elem=e;this.container=s;this.comp=e.comp;this.v=t;this.pv=t;this._isFirstFrame=true;this.getValue=h;this.setVValue=o;this.interpolateValue=r;this.effectsSequence=[n.bind(this)];this.addEffect=l}function c(e,i,a,s){this.propType="multidimensional";var f;var p=i.k.length;var m;var c;var u;var d;for(f=0;f<p-1;f+=1){if(i.k[f].to&&i.k[f].s&&i.k[f+1]&&i.k[f+1].s){m=i.k[f].s;c=i.k[f+1].s;u=i.k[f].to;d=i.k[f].ti;if(m.length===2&&!(m[0]===c[0]&&m[1]===c[1])&&bez.pointOnLine2D(m[0],m[1],c[0],c[1],m[0]+u[0],m[1]+u[1])&&bez.pointOnLine2D(m[0],m[1],c[0],c[1],c[0]+d[0],c[1]+d[1])||m.length===3&&!(m[0]===c[0]&&m[1]===c[1]&&m[2]===c[2])&&bez.pointOnLine3D(m[0],m[1],m[2],c[0],c[1],c[2],m[0]+u[0],m[1]+u[1],m[2]+u[2])&&bez.pointOnLine3D(m[0],m[1],m[2],c[0],c[1],c[2],c[0]+d[0],c[1]+d[1],c[2]+d[2])){i.k[f].to=null;i.k[f].ti=null}if(m[0]===c[0]&&m[1]===c[1]&&u[0]===0&&u[1]===0&&d[0]===0&&d[1]===0){if(m.length===2||m[2]===c[2]&&u[2]===0&&d[2]===0){i.k[f].to=null;i.k[f].ti=null}}}}this.effectsSequence=[n.bind(this)];this.data=i;this.keyframes=i.k;this.keyframesMetadata=[];this.offsetTime=e.data.st;this.k=true;this.kf=true;this._isFirstFrame=true;this.mult=a||1;this.elem=e;this.container=s;this.comp=e.comp;this.getValue=h;this.setVValue=o;this.interpolateValue=r;this.frameId=-1;var v=i.k[0].s.length;this.v=createTypedArray("float32",v);this.pv=createTypedArray("float32",v);for(f=0;f<v;f+=1){this.v[f]=t;this.pv[f]=t}this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",v)};this.addEffect=l}function u(t,e,r,i,a){var s;if(!e.k.length){s=new f(t,e,i,a)}else if(typeof e.k[0]==="number"){s=new p(t,e,i,a)}else{switch(r){case 0:s=new m(t,e,i,a);break;case 1:s=new c(t,e,i,a);break;default:break}}if(s.effectsSequence.length){a.addDynamicProperty(s)}return s}var d={getProp:u};return d}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){if(this.dynamicProperties.indexOf(t)===-1){this.dynamicProperties.push(t);this.container.addDynamicProperty(this);this._isAnimated=true}},iterateDynamicProperties:function(){this._mdf=false;var t;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1){this.dynamicProperties[t].getValue();if(this.dynamicProperties[t]._mdf){this._mdf=true}}},initDynamicPropertyContainer:function(t){this.container=t;this.dynamicProperties=[];this._mdf=false;this._isAnimated=false}};const pointPool=function(){function t(){return createTypedArray("float32",2)}return poolFactory(8,t)}();function ShapePath(){this.c=false;this._length=0;this._maxLength=8;this.v=createSizedArray(this._maxLength);this.o=createSizedArray(this._maxLength);this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t;this.setLength(e);var r=0;while(r<e){this.v[r]=pointPool.newElement();this.o[r]=pointPool.newElement();this.i[r]=pointPool.newElement();r+=1}};ShapePath.prototype.setLength=function(t){while(this._maxLength<t){this.doubleArrayLength()}this._length=t};ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength));this.i=this.i.concat(createSizedArray(this._maxLength));this.o=this.o.concat(createSizedArray(this._maxLength));this._maxLength*=2};ShapePath.prototype.setXYAt=function(t,e,r,i,a){var s;this._length=Math.max(this._length,i+1);if(this._length>=this._maxLength){this.doubleArrayLength()}switch(r){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[];break}if(!s[i]||s[i]&&!a){s[i]=pointPool.newElement()}s[i][0]=t;s[i][1]=e};ShapePath.prototype.setTripleAt=function(t,e,r,i,a,s,n,o){this.setXYAt(t,e,"v",n,o);this.setXYAt(r,i,"o",n,o);this.setXYAt(a,s,"i",n,o)};ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v;var r=this.o;var i=this.i;var a=0;if(this.c){t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,false);a=1}var s=this._length-1;var n=this._length;var o;for(o=a;o<n;o+=1){t.setTripleAt(e[s][0],e[s][1],i[s][0],i[s][1],r[s][0],r[s][1],o,false);s-=1}return t};const shapePool=function(){function t(){return new ShapePath}function e(t){var e=t._length;var r;for(r=0;r<e;r+=1){pointPool.release(t.v[r]);pointPool.release(t.i[r]);pointPool.release(t.o[r]);t.v[r]=null;t.i[r]=null;t.o[r]=null}t._length=0;t.c=false}function r(t){var e=i.newElement();var r;var a=t._length===undefined?t.v.length:t._length;e.setLength(a);e.c=t.c;for(r=0;r<a;r+=1){e.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],r)}return e}var i=poolFactory(4,t,e);i.clone=r;return i}();function ShapeCollection(){this._length=0;this._maxLength=4;this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){if(this._length===this._maxLength){this.shapes=this.shapes.concat(createSizedArray(this._maxLength));this._maxLength*=2}this.shapes[this._length]=t;this._length+=1};ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1){shapePool.release(this.shapes[t])}this._length=0};const shapeCollectionPool=function(){var t={newShapeCollection:a,release:s};var e=0;var r=4;var i=createSizedArray(r);function a(){var t;if(e){e-=1;t=i[e]}else{t=new ShapeCollection}return t}function s(t){var a;var s=t._length;for(a=0;a<s;a+=1){shapePool.release(t.shapes[a])}t._length=0;if(e===r){i=pooling.double(i);r*=2}i[e]=t;e+=1}return t}();const ShapePropertyFactory=function(){var t=-999999;function e(t,e,r){var i=r.lastIndex;var a;var s;var n;var o;var h;var l;var f;var p;var m;var c=this.keyframes;if(t<c[0].t-this.offsetTime){a=c[0].s[0];n=true;i=0}else if(t>=c[c.length-1].t-this.offsetTime){a=c[c.length-1].s?c[c.length-1].s[0]:c[c.length-2].e[0];n=true}else{var u=i;var d=c.length-1;var v=true;var y;var g;var b;while(v){y=c[u];g=c[u+1];if(g.t-this.offsetTime>t){break}if(u<d-1){u+=1}else{v=false}}b=this.keyframesMetadata[u]||{};n=y.h===1;i=u;if(!n){if(t>=g.t-this.offsetTime){p=1}else if(t<y.t-this.offsetTime){p=0}else{var P;if(b.__fnct){P=b.__fnct}else{P=BezierFactory.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y).get;b.__fnct=P}p=P((t-(y.t-this.offsetTime))/(g.t-this.offsetTime-(y.t-this.offsetTime)))}s=g.s?g.s[0]:y.e[0]}a=y.s[0]}l=e._length;f=a.i[0].length;r.lastIndex=i;for(o=0;o<l;o+=1){for(h=0;h<f;h+=1){m=n?a.i[o][h]:a.i[o][h]+(s.i[o][h]-a.i[o][h])*p;e.i[o][h]=m;m=n?a.o[o][h]:a.o[o][h]+(s.o[o][h]-a.o[o][h])*p;e.o[o][h]=m;m=n?a.v[o][h]:a.v[o][h]+(s.v[o][h]-a.v[o][h])*p;e.v[o][h]=m}}}function r(){var e=this.comp.renderedFrame-this.offsetTime;var r=this.keyframes[0].t-this.offsetTime;var i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;var a=this._caching.lastFrame;if(!(a!==t&&(a<r&&e<r||a>i&&e>i))){this._caching.lastIndex=a<e?this._caching.lastIndex:0;this.interpolateShape(e,this.pv,this._caching)}this._caching.lastFrame=e;return this.pv}function i(){this.paths=this.localShapeCollection}function a(t,e){if(t._length!==e._length||t.c!==e.c){return false}var r;var i=t._length;for(r=0;r<i;r+=1){if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1]){return false}}return true}function s(t){if(!a(this.v,t)){this.v=shapePool.clone(t);this.localShapeCollection.releaseShapes();this.localShapeCollection.addShape(this.v);this._mdf=true;this.paths=this.localShapeCollection}}function n(){if(this.elem.globalData.frameId===this.frameId){return}if(!this.effectsSequence.length){this._mdf=false;return}if(this.lock){this.setVValue(this.pv);return}this.lock=true;this._mdf=false;var t;if(this.kf){t=this.pv}else if(this.data.ks){t=this.data.ks.k}else{t=this.data.pt.k}var e;var r=this.effectsSequence.length;for(e=0;e<r;e+=1){t=this.effectsSequence[e](t)}this.setVValue(t);this.lock=false;this.frameId=this.elem.globalData.frameId}function o(t,e,r){this.propType="shape";this.comp=t.comp;this.container=t;this.elem=t;this.data=e;this.k=false;this.kf=false;this._mdf=false;var a=r===3?e.pt.k:e.ks.k;this.v=shapePool.clone(a);this.pv=shapePool.clone(this.v);this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.paths=this.localShapeCollection;this.paths.addShape(this.v);this.reset=i;this.effectsSequence=[]}function h(t){this.effectsSequence.push(t);this.container.addDynamicProperty(this)}o.prototype.interpolateShape=e;o.prototype.getValue=n;o.prototype.setVValue=s;o.prototype.addEffect=h;function l(e,a,s){this.propType="shape";this.comp=e.comp;this.elem=e;this.container=e;this.offsetTime=e.data.st;this.keyframes=s===3?a.pt.k:a.ks.k;this.keyframesMetadata=[];this.k=true;this.kf=true;var n=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement();this.v.setPathData(this.keyframes[0].s[0].c,n);this.pv=shapePool.clone(this.v);this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.paths=this.localShapeCollection;this.paths.addShape(this.v);this.lastFrame=t;this.reset=i;this._caching={lastFrame:t,lastIndex:0};this.effectsSequence=[r.bind(this)]}l.prototype.getValue=n;l.prototype.interpolateShape=e;l.prototype.setVValue=s;l.prototype.addEffect=h;var f=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement();this.v.setPathData(true,4);this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.paths=this.localShapeCollection;this.localShapeCollection.addShape(this.v);this.d=e.d;this.elem=t;this.comp=t.comp;this.frameId=-1;this.initDynamicPropertyContainer(t);this.p=PropertyFactory.getProp(t,e.p,1,0,this);this.s=PropertyFactory.getProp(t,e.s,1,0,this);if(this.dynamicProperties.length){this.k=true}else{this.k=false;this.convertEllToPath()}}e.prototype={reset:i,getValue:function(){if(this.elem.globalData.frameId===this.frameId){return}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();if(this._mdf){this.convertEllToPath()}},convertEllToPath:function(){var e=this.p.v[0];var r=this.p.v[1];var i=this.s.v[0]/2;var a=this.s.v[1]/2;var s=this.d!==3;var n=this.v;n.v[0][0]=e;n.v[0][1]=r-a;n.v[1][0]=s?e+i:e-i;n.v[1][1]=r;n.v[2][0]=e;n.v[2][1]=r+a;n.v[3][0]=s?e-i:e+i;n.v[3][1]=r;n.i[0][0]=s?e-i*t:e+i*t;n.i[0][1]=r-a;n.i[1][0]=s?e+i:e-i;n.i[1][1]=r-a*t;n.i[2][0]=s?e+i*t:e-i*t;n.i[2][1]=r+a;n.i[3][0]=s?e-i:e+i;n.i[3][1]=r+a*t;n.o[0][0]=s?e+i*t:e-i*t;n.o[0][1]=r-a;n.o[1][0]=s?e+i:e-i;n.o[1][1]=r+a*t;n.o[2][0]=s?e-i*t:e+i*t;n.o[2][1]=r+a;n.o[3][0]=s?e-i:e+i;n.o[3][1]=r-a*t}};extendPrototype([DynamicPropertyContainer],e);return e}();var p=function(){function t(t,e){this.v=shapePool.newElement();this.v.setPathData(true,0);this.elem=t;this.comp=t.comp;this.data=e;this.frameId=-1;this.d=e.d;this.initDynamicPropertyContainer(t);if(e.sy===1){this.ir=PropertyFactory.getProp(t,e.ir,0,0,this);this.is=PropertyFactory.getProp(t,e.is,0,.01,this);this.convertToPath=this.convertStarToPath}else{this.convertToPath=this.convertPolygonToPath}this.pt=PropertyFactory.getProp(t,e.pt,0,0,this);this.p=PropertyFactory.getProp(t,e.p,1,0,this);this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this);this.or=PropertyFactory.getProp(t,e.or,0,0,this);this.os=PropertyFactory.getProp(t,e.os,0,.01,this);this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.localShapeCollection.addShape(this.v);this.paths=this.localShapeCollection;if(this.dynamicProperties.length){this.k=true}else{this.k=false;this.convertToPath()}}t.prototype={reset:i,getValue:function(){if(this.elem.globalData.frameId===this.frameId){return}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();if(this._mdf){this.convertToPath()}},convertStarToPath:function(){var t=Math.floor(this.pt.v)*2;var e=Math.PI*2/t;var r=true;var i=this.or.v;var a=this.ir.v;var s=this.os.v;var n=this.is.v;var o=2*Math.PI*i/(t*2);var h=2*Math.PI*a/(t*2);var l;var f;var p;var m;var c=-Math.PI/2;c+=this.r.v;var u=this.data.d===3?-1:1;this.v._length=0;for(l=0;l<t;l+=1){f=r?i:a;p=r?s:n;m=r?o:h;var d=f*Math.cos(c);var v=f*Math.sin(c);var y=d===0&&v===0?0:v/Math.sqrt(d*d+v*v);var g=d===0&&v===0?0:-d/Math.sqrt(d*d+v*v);d+=+this.p.v[0];v+=+this.p.v[1];this.v.setTripleAt(d,v,d-y*m*p*u,v-g*m*p*u,d+y*m*p*u,v+g*m*p*u,l,true);r=!r;c+=e*u}},convertPolygonToPath:function(){var t=Math.floor(this.pt.v);var e=Math.PI*2/t;var r=this.or.v;var i=this.os.v;var a=2*Math.PI*r/(t*4);var s;var n=-Math.PI*.5;var o=this.data.d===3?-1:1;n+=this.r.v;this.v._length=0;for(s=0;s<t;s+=1){var h=r*Math.cos(n);var l=r*Math.sin(n);var f=h===0&&l===0?0:l/Math.sqrt(h*h+l*l);var p=h===0&&l===0?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0];l+=+this.p.v[1];this.v.setTripleAt(h,l,h-f*a*i*o,l-p*a*i*o,h+f*a*i*o,l+p*a*i*o,s,true);n+=e*o}this.paths.length=0;this.paths[0]=this.v}};extendPrototype([DynamicPropertyContainer],t);return t}();var m=function(){function t(t,e){this.v=shapePool.newElement();this.v.c=true;this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.localShapeCollection.addShape(this.v);this.paths=this.localShapeCollection;this.elem=t;this.comp=t.comp;this.frameId=-1;this.d=e.d;this.initDynamicPropertyContainer(t);this.p=PropertyFactory.getProp(t,e.p,1,0,this);this.s=PropertyFactory.getProp(t,e.s,1,0,this);this.r=PropertyFactory.getProp(t,e.r,0,0,this);if(this.dynamicProperties.length){this.k=true}else{this.k=false;this.convertRectToPath()}}t.prototype={convertRectToPath:function(){var t=this.p.v[0];var e=this.p.v[1];var r=this.s.v[0]/2;var i=this.s.v[1]/2;var a=bmMin(r,i,this.r.v);var s=a*(1-roundCorner);this.v._length=0;if(this.d===2||this.d===1){this.v.setTripleAt(t+r,e-i+a,t+r,e-i+a,t+r,e-i+s,0,true);this.v.setTripleAt(t+r,e+i-a,t+r,e+i-s,t+r,e+i-a,1,true);if(a!==0){this.v.setTripleAt(t+r-a,e+i,t+r-a,e+i,t+r-s,e+i,2,true);this.v.setTripleAt(t-r+a,e+i,t-r+s,e+i,t-r+a,e+i,3,true);this.v.setTripleAt(t-r,e+i-a,t-r,e+i-a,t-r,e+i-s,4,true);this.v.setTripleAt(t-r,e-i+a,t-r,e-i+s,t-r,e-i+a,5,true);this.v.setTripleAt(t-r+a,e-i,t-r+a,e-i,t-r+s,e-i,6,true);this.v.setTripleAt(t+r-a,e-i,t+r-s,e-i,t+r-a,e-i,7,true)}else{this.v.setTripleAt(t-r,e+i,t-r+s,e+i,t-r,e+i,2);this.v.setTripleAt(t-r,e-i,t-r,e-i+s,t-r,e-i,3)}}else{this.v.setTripleAt(t+r,e-i+a,t+r,e-i+s,t+r,e-i+a,0,true);if(a!==0){this.v.setTripleAt(t+r-a,e-i,t+r-a,e-i,t+r-s,e-i,1,true);this.v.setTripleAt(t-r+a,e-i,t-r+s,e-i,t-r+a,e-i,2,true);this.v.setTripleAt(t-r,e-i+a,t-r,e-i+a,t-r,e-i+s,3,true);this.v.setTripleAt(t-r,e+i-a,t-r,e+i-s,t-r,e+i-a,4,true);this.v.setTripleAt(t-r+a,e+i,t-r+a,e+i,t-r+s,e+i,5,true);this.v.setTripleAt(t+r-a,e+i,t+r-s,e+i,t+r-a,e+i,6,true);this.v.setTripleAt(t+r,e+i-a,t+r,e+i-a,t+r,e+i-s,7,true)}else{this.v.setTripleAt(t-r,e-i,t-r+s,e-i,t-r,e-i,1,true);this.v.setTripleAt(t-r,e+i,t-r,e+i-s,t-r,e+i,2,true);this.v.setTripleAt(t+r,e+i,t+r-s,e+i,t+r,e+i,3,true)}}},getValue:function(){if(this.elem.globalData.frameId===this.frameId){return}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();if(this._mdf){this.convertRectToPath()}},reset:i};extendPrototype([DynamicPropertyContainer],t);return t}();function c(t,e,r){var i;if(r===3||r===4){var a=r===3?e.pt:e.ks;var s=a.k;if(s.length){i=new l(t,e,r)}else{i=new o(t,e,r)}}else if(r===5){i=new m(t,e)}else if(r===6){i=new f(t,e)}else if(r===7){i=new p(t,e)}if(i.k){t.addDynamicProperty(i)}return i}function u(){return o}function d(){return l}var v={};v.getShapeProp=c;v.getConstructorFunction=u;v.getKeyframedConstructorFunction=d;return v}();
/*!
	 Transformation Matrix v2.0
	 (c) Epistemex 2014-2015
	 www.epistemex.com
	 By Ken Fyrstenberg
	 Contributions by leeoniya.
	 License: MIT, header required.
	 */const Matrix=function(){var t=Math.cos;var e=Math.sin;var r=Math.tan;var i=Math.round;function a(){this.props[0]=1;this.props[1]=0;this.props[2]=0;this.props[3]=0;this.props[4]=0;this.props[5]=1;this.props[6]=0;this.props[7]=0;this.props[8]=0;this.props[9]=0;this.props[10]=1;this.props[11]=0;this.props[12]=0;this.props[13]=0;this.props[14]=0;this.props[15]=1;return this}function s(r){if(r===0){return this}var i=t(r);var a=e(r);return this._t(i,-a,0,0,a,i,0,0,0,0,1,0,0,0,0,1)}function n(r){if(r===0){return this}var i=t(r);var a=e(r);return this._t(1,0,0,0,0,i,-a,0,0,a,i,0,0,0,0,1)}function o(r){if(r===0){return this}var i=t(r);var a=e(r);return this._t(i,0,a,0,0,1,0,0,-a,0,i,0,0,0,0,1)}function h(r){if(r===0){return this}var i=t(r);var a=e(r);return this._t(i,-a,0,0,a,i,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function f(t,e){return this.shear(r(t),r(e))}function p(i,a){var s=t(a);var n=e(a);return this._t(s,n,0,0,-n,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(i),1,0,0,0,0,1,0,0,0,0,1)._t(s,-n,0,0,n,s,0,0,0,0,1,0,0,0,0,1)}function m(t,e,r){if(!r&&r!==0){r=1}if(t===1&&e===1&&r===1){return this}return this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function c(t,e,r,i,a,s,n,o,h,l,f,p,m,c,u,d){this.props[0]=t;this.props[1]=e;this.props[2]=r;this.props[3]=i;this.props[4]=a;this.props[5]=s;this.props[6]=n;this.props[7]=o;this.props[8]=h;this.props[9]=l;this.props[10]=f;this.props[11]=p;this.props[12]=m;this.props[13]=c;this.props[14]=u;this.props[15]=d;return this}function u(t,e,r){r=r||0;if(t!==0||e!==0||r!==0){return this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1)}return this}function d(t,e,r,i,a,s,n,o,h,l,f,p,m,c,u,d){var v=this.props;if(t===1&&e===0&&r===0&&i===0&&a===0&&s===1&&n===0&&o===0&&h===0&&l===0&&f===1&&p===0){v[12]=v[12]*t+v[15]*m;v[13]=v[13]*s+v[15]*c;v[14]=v[14]*f+v[15]*u;v[15]*=d;this._identityCalculated=false;return this}var y=v[0];var g=v[1];var b=v[2];var P=v[3];var E=v[4];var x=v[5];var S=v[6];var C=v[7];var A=v[8];var _=v[9];var k=v[10];var T=v[11];var D=v[12];var M=v[13];var w=v[14];var F=v[15];v[0]=y*t+g*a+b*h+P*m;v[1]=y*e+g*s+b*l+P*c;v[2]=y*r+g*n+b*f+P*u;v[3]=y*i+g*o+b*p+P*d;v[4]=E*t+x*a+S*h+C*m;v[5]=E*e+x*s+S*l+C*c;v[6]=E*r+x*n+S*f+C*u;v[7]=E*i+x*o+S*p+C*d;v[8]=A*t+_*a+k*h+T*m;v[9]=A*e+_*s+k*l+T*c;v[10]=A*r+_*n+k*f+T*u;v[11]=A*i+_*o+k*p+T*d;v[12]=D*t+M*a+w*h+F*m;v[13]=D*e+M*s+w*l+F*c;v[14]=D*r+M*n+w*f+F*u;v[15]=D*i+M*o+w*p+F*d;this._identityCalculated=false;return this}function v(){if(!this._identityCalculated){this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1);this._identityCalculated=true}return this._identity}function y(t){var e=0;while(e<16){if(t.props[e]!==this.props[e]){return false}e+=1}return true}function g(t){var e;for(e=0;e<16;e+=1){t.props[e]=this.props[e]}return t}function b(t){var e;for(e=0;e<16;e+=1){this.props[e]=t[e]}}function P(t,e,r){return{x:t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}}function E(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function x(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function S(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function C(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4];var e=this.props[5]/t;var r=-this.props[1]/t;var i=-this.props[4]/t;var a=this.props[0]/t;var s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t;var n=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t;var o=new Matrix;o.props[0]=e;o.props[1]=r;o.props[4]=i;o.props[5]=a;o.props[12]=s;o.props[13]=n;return o}function A(t){var e=this.getInverseMatrix();return e.applyToPointArray(t[0],t[1],t[2]||0)}function _(t){var e;var r=t.length;var i=[];for(e=0;e<r;e+=1){i[e]=A(t[e])}return i}function k(t,e,r){var i=createTypedArray("float32",6);if(this.isIdentity()){i[0]=t[0];i[1]=t[1];i[2]=e[0];i[3]=e[1];i[4]=r[0];i[5]=r[1]}else{var a=this.props[0];var s=this.props[1];var n=this.props[4];var o=this.props[5];var h=this.props[12];var l=this.props[13];i[0]=t[0]*a+t[1]*n+h;i[1]=t[0]*s+t[1]*o+l;i[2]=e[0]*a+e[1]*n+h;i[3]=e[0]*s+e[1]*o+l;i[4]=r[0]*a+r[1]*n+h;i[5]=r[0]*s+r[1]*o+l}return i}function T(t,e,r){var i;if(this.isIdentity()){i=[t,e,r]}else{i=[t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]]}return i}function D(t,e){if(this.isIdentity()){return t+","+e}var r=this.props;return Math.round((t*r[0]+e*r[4]+r[12])*100)/100+","+Math.round((t*r[1]+e*r[5]+r[13])*100)/100}function M(){var t=0;var e=this.props;var r="matrix3d(";var a=1e4;while(t<16){r+=i(e[t]*a)/a;r+=t===15?")":",";t+=1}return r}function w(t){var e=1e4;if(t<1e-6&&t>0||t>-1e-6&&t<0){return i(t*e)/e}return t}function F(){var t=this.props;var e=w(t[0]);var r=w(t[1]);var i=w(t[4]);var a=w(t[5]);var s=w(t[12]);var n=w(t[13]);return"matrix("+e+","+r+","+i+","+a+","+s+","+n+")"}return function(){this.reset=a;this.rotate=s;this.rotateX=n;this.rotateY=o;this.rotateZ=h;this.skew=f;this.skewFromAxis=p;this.shear=l;this.scale=m;this.setTransform=c;this.translate=u;this.transform=d;this.applyToPoint=P;this.applyToX=E;this.applyToY=x;this.applyToZ=S;this.applyToPointArray=T;this.applyToTriplePoints=k;this.applyToPointStringified=D;this.toCSS=M;this.to2dCSS=F;this.clone=g;this.cloneFromProps=b;this.equals=y;this.inversePoints=_;this.inversePoint=A;this.getInverseMatrix=C;this._t=this.transform;this.isIdentity=v;this._identity=true;this._identityCalculated=false;this.props=createTypedArray("float32",16);this.reset()}}();const lottie={};var renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){{animationManager.searchAnimations()}}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if(typeof t==="string"){switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}}else if(!isNaN(t)&&t>1){setDefaultCurveSegments(t)}}function inBrowser(){return typeof navigator!=="undefined"}function installPlugin(t,e){if(t==="expressions"){setExpressionsPlugin(e)}}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play;lottie.pause=animationManager.pause;lottie.setLocationHref=setLocation;lottie.togglePause=animationManager.togglePause;lottie.setSpeed=animationManager.setSpeed;lottie.setDirection=animationManager.setDirection;lottie.stop=animationManager.stop;lottie.searchAnimations=searchAnimations;lottie.registerAnimation=animationManager.registerAnimation;lottie.loadAnimation=loadAnimation;lottie.setSubframeRendering=setSubframeRendering;lottie.resize=animationManager.resize;lottie.goToAndStop=animationManager.goToAndStop;lottie.destroy=animationManager.destroy;lottie.setQuality=setQuality;lottie.inBrowser=inBrowser;lottie.installPlugin=installPlugin;lottie.freeze=animationManager.freeze;lottie.unfreeze=animationManager.unfreeze;lottie.setVolume=animationManager.setVolume;lottie.mute=animationManager.mute;lottie.unmute=animationManager.unmute;lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations;lottie.useWebWorker=setWebWorker;lottie.setIDPrefix=setPrefix;lottie.__getFactory=getFactory;lottie.version="[[BM_VERSION]]";function checkReady(){if(document.readyState==="complete"){clearInterval(readyStateCheckInterval);searchAnimations()}}function getQueryVariable(t){var e=queryString.split("&");for(var r=0;r<e.length;r+=1){var i=e[r].split("=");if(decodeURIComponent(i[0])==t){return decodeURIComponent(i[1])}}return null}var queryString="";{var scripts=document.getElementsByTagName("script");var index=scripts.length-1;var myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"";renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{if(!(typeof exports==="object"&&typeof module!=="undefined")&&!(typeof define==="function"&&define.amd)){window.bodymovin=lottie}}catch(t){}const ShapeModifiers=function(){var t={};var e={};t.registerModifier=r;t.getModifier=i;function r(t,r){if(!e[t]){e[t]=r}}function i(t,r,i){return new e[t](r,i)}return t}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){};ShapeModifier.prototype.addShapeToModifier=function(){};ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e);this.addShapeToModifier(e);if(this._isAnimated){t.setAsAnimated()}}};ShapeModifier.prototype.init=function(t,e){this.shapes=[];this.elem=t;this.initDynamicPropertyContainer(t);this.initModifierProperties(t,e);this.frameId=initialDefaultFrame;this.closed=false;this.k=false;if(this.dynamicProperties.length){this.k=true}else{this.getValue(true)}};ShapeModifier.prototype.processKeys=function(){if(this.elem.globalData.frameId===this.frameId){return}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties()};extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier);TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this);this.e=PropertyFactory.getProp(t,e.e,0,.01,this);this.o=PropertyFactory.getProp(t,e.o,0,0,this);this.sValue=0;this.eValue=0;this.getValue=this.processKeys;this.m=e.m;this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length};TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]};TrimModifier.prototype.calculateShapeEdges=function(t,e,r,i,a){var s=[];if(e<=1){s.push({s:t,e:e})}else if(t>=1){s.push({s:t-1,e:e-1})}else{s.push({s:t,e:1});s.push({s:0,e:e-1})}var n=[];var o;var h=s.length;var l;for(o=0;o<h;o+=1){l=s[o];if(!(l.e*a<i||l.s*a>i+r)){var f;var p;if(l.s*a<=i){f=0}else{f=(l.s*a-i)/r}if(l.e*a>=i+r){p=1}else{p=(l.e*a-i)/r}n.push([f,p])}}if(!n.length){n.push([0,0])}return n};TrimModifier.prototype.releasePathsData=function(t){var e;var r=t.length;for(e=0;e<r;e+=1){segmentsLengthPool.release(t[e])}t.length=0;return t};TrimModifier.prototype.processShapes=function(t){var e;var r;if(this._mdf||t){var i=this.o.v%360/360;if(i<0){i+=1}if(this.s.v>1){e=1+i}else if(this.s.v<0){e=0+i}else{e=this.s.v+i}if(this.e.v>1){r=1+i}else if(this.e.v<0){r=0+i}else{r=this.e.v+i}if(e>r){var a=e;e=r;r=a}e=Math.round(e*1e4)*1e-4;r=Math.round(r*1e4)*1e-4;this.sValue=e;this.eValue=r}else{e=this.sValue;r=this.eValue}var s;var n;var o=this.shapes.length;var h;var l;var f;var p;var m;var c=0;if(r===e){for(n=0;n<o;n+=1){this.shapes[n].localShapeCollection.releaseShapes();this.shapes[n].shape._mdf=true;this.shapes[n].shape.paths=this.shapes[n].localShapeCollection;if(this._mdf){this.shapes[n].pathsData.length=0}}}else if(!(r===1&&e===0||r===0&&e===1)){var u=[];var d;var v;for(n=0;n<o;n+=1){d=this.shapes[n];if(!d.shape._mdf&&!this._mdf&&!t&&this.m!==2){d.shape.paths=d.localShapeCollection}else{s=d.shape.paths;l=s._length;m=0;if(!d.shape._mdf&&d.pathsData.length){m=d.totalShapeLength}else{f=this.releasePathsData(d.pathsData);for(h=0;h<l;h+=1){p=bez.getSegmentsLength(s.shapes[h]);f.push(p);m+=p.totalLength}d.totalShapeLength=m;d.pathsData=f}c+=m;d.shape._mdf=true}}var y=e;var g=r;var b=0;var P;for(n=o-1;n>=0;n-=1){d=this.shapes[n];if(d.shape._mdf){v=d.localShapeCollection;v.releaseShapes();if(this.m===2&&o>1){P=this.calculateShapeEdges(e,r,d.totalShapeLength,b,c);b+=d.totalShapeLength}else{P=[[y,g]]}l=P.length;for(h=0;h<l;h+=1){y=P[h][0];g=P[h][1];u.length=0;if(g<=1){u.push({s:d.totalShapeLength*y,e:d.totalShapeLength*g})}else if(y>=1){u.push({s:d.totalShapeLength*(y-1),e:d.totalShapeLength*(g-1)})}else{u.push({s:d.totalShapeLength*y,e:d.totalShapeLength});u.push({s:0,e:d.totalShapeLength*(g-1)})}var E=this.addShapes(d,u[0]);if(u[0].s!==u[0].e){if(u.length>1){var x=d.shape.paths.shapes[d.shape.paths._length-1];if(x.c){var S=E.pop();this.addPaths(E,v);E=this.addShapes(d,u[1],S)}else{this.addPaths(E,v);E=this.addShapes(d,u[1])}}this.addPaths(E,v)}}d.shape.paths=v}}}else if(this._mdf){for(n=0;n<o;n+=1){this.shapes[n].pathsData.length=0;this.shapes[n].shape._mdf=true}}};TrimModifier.prototype.addPaths=function(t,e){var r;var i=t.length;for(r=0;r<i;r+=1){e.addShape(t[r])}};TrimModifier.prototype.addSegment=function(t,e,r,i,a,s,n){a.setXYAt(e[0],e[1],"o",s);a.setXYAt(r[0],r[1],"i",s+1);if(n){a.setXYAt(t[0],t[1],"v",s)}a.setXYAt(i[0],i[1],"v",s+1)};TrimModifier.prototype.addSegmentFromArray=function(t,e,r,i){e.setXYAt(t[1],t[5],"o",r);e.setXYAt(t[2],t[6],"i",r+1);if(i){e.setXYAt(t[0],t[4],"v",r)}e.setXYAt(t[3],t[7],"v",r+1)};TrimModifier.prototype.addShapes=function(t,e,r){var i=t.pathsData;var a=t.shape.paths.shapes;var s;var n=t.shape.paths._length;var o;var h;var l=0;var f;var p;var m;var c;var u=[];var d;var v=true;if(!r){r=shapePool.newElement();p=0;d=0}else{p=r._length;d=r._length}u.push(r);for(s=0;s<n;s+=1){m=i[s].lengths;r.c=a[s].c;h=a[s].c?m.length:m.length+1;for(o=1;o<h;o+=1){f=m[o-1];if(l+f.addedLength<e.s){l+=f.addedLength;r.c=false}else if(l>e.e){r.c=false;break}else{if(e.s<=l&&e.e>=l+f.addedLength){this.addSegment(a[s].v[o-1],a[s].o[o-1],a[s].i[o],a[s].v[o],r,p,v);v=false}else{c=bez.getNewSegment(a[s].v[o-1],a[s].v[o],a[s].o[o-1],a[s].i[o],(e.s-l)/f.addedLength,(e.e-l)/f.addedLength,m[o-1]);this.addSegmentFromArray(c,r,p,v);v=false;r.c=false}l+=f.addedLength;p+=1}}if(a[s].c&&m.length){f=m[o-1];if(l<=e.e){var y=m[o-1].addedLength;if(e.s<=l&&e.e>=l+y){this.addSegment(a[s].v[o-1],a[s].o[o-1],a[s].i[0],a[s].v[0],r,p,v);v=false}else{c=bez.getNewSegment(a[s].v[o-1],a[s].v[0],a[s].o[o-1],a[s].i[0],(e.s-l)/y,(e.e-l)/y,m[o-1]);this.addSegmentFromArray(c,r,p,v);v=false;r.c=false}}else{r.c=false}l+=f.addedLength;p+=1}if(r._length){r.setXYAt(r.v[d][0],r.v[d][1],"i",d);r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)}if(l>e.e){break}if(s<n-1){r=shapePool.newElement();v=true;u.push(r);p=0}}return u};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier);PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys;this.amount=PropertyFactory.getProp(t,e.a,0,null,this);this._isAnimated=!!this.amount.effectsSequence.length};PuckerAndBloatModifier.prototype.processPath=function(t,e){var r=e/100;var i=[0,0];var a=t._length;var s=0;for(s=0;s<a;s+=1){i[0]+=t.v[s][0];i[1]+=t.v[s][1]}i[0]/=a;i[1]/=a;var n=shapePool.newElement();n.c=t.c;var o;var h;var l;var f;var p;var m;for(s=0;s<a;s+=1){o=t.v[s][0]+(i[0]-t.v[s][0])*r;h=t.v[s][1]+(i[1]-t.v[s][1])*r;l=t.o[s][0]+(i[0]-t.o[s][0])*-r;f=t.o[s][1]+(i[1]-t.o[s][1])*-r;p=t.i[s][0]+(i[0]-t.i[s][0])*-r;m=t.i[s][1]+(i[1]-t.i[s][1])*-r;n.setTripleAt(o,h,l,f,p,m,s)}return n};PuckerAndBloatModifier.prototype.processShapes=function(t){var e;var r;var i=this.shapes.length;var a;var s;var n=this.amount.v;if(n!==0){var o;var h;for(r=0;r<i;r+=1){o=this.shapes[r];h=o.localShapeCollection;if(!(!o.shape._mdf&&!this._mdf&&!t)){h.releaseShapes();o.shape._mdf=true;e=o.shape.paths.shapes;s=o.shape.paths._length;for(a=0;a<s;a+=1){h.addShape(this.processPath(e[a],n))}}o.shape.paths=o.localShapeCollection}}if(!this.dynamicProperties.length){this._mdf=false}};const TransformPropertyFactory=function(){var t=[0,0];function e(t){var e=this._mdf;this.iterateDynamicProperties();this._mdf=this._mdf||e;if(this.a){t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2])}if(this.s){t.scale(this.s.v[0],this.s.v[1],this.s.v[2])}if(this.sk){t.skewFromAxis(-this.sk.v,this.sa.v)}if(this.r){t.rotate(-this.r.v)}else{t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0])}if(this.data.p.s){if(this.data.p.z){t.translate(this.px.v,this.py.v,-this.pz.v)}else{t.translate(this.px.v,this.py.v,0)}}else{t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}}function r(e){if(this.elem.globalData.frameId===this.frameId){return}if(this._isDirty){this.precalculateMatrix();this._isDirty=false}this.iterateDynamicProperties();if(this._mdf||e){var r;this.v.cloneFromProps(this.pre.props);if(this.appliedTransformations<1){this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2])}if(this.appliedTransformations<2){this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2])}if(this.sk&&this.appliedTransformations<3){this.v.skewFromAxis(-this.sk.v,this.sa.v)}if(this.r&&this.appliedTransformations<4){this.v.rotate(-this.r.v)}else if(!this.r&&this.appliedTransformations<4){this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0])}if(this.autoOriented){var i;var a;r=this.elem.globalData.frameRate;if(this.p&&this.p.keyframes&&this.p.getValueAtTime){if(this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t){i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0);a=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)}else if(this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t){i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0);a=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)}else{i=this.p.pv;a=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime)}}else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[];a=[];var s=this.px;var n=this.py;if(s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t){i[0]=s.getValueAtTime((s.keyframes[0].t+.01)/r,0);i[1]=n.getValueAtTime((n.keyframes[0].t+.01)/r,0);a[0]=s.getValueAtTime(s.keyframes[0].t/r,0);a[1]=n.getValueAtTime(n.keyframes[0].t/r,0)}else if(s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t){i[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/r,0);i[1]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/r,0);a[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/r,0);a[1]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/r,0)}else{i=[s.pv,n.pv];a[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/r,s.offsetTime);a[1]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/r,n.offsetTime)}}else{a=t;i=a}this.v.rotate(-Math.atan2(i[1]-a[1],i[0]-a[0]))}if(this.data.p&&this.data.p.s){if(this.data.p.z){this.v.translate(this.px.v,this.py.v,-this.pz.v)}else{this.v.translate(this.px.v,this.py.v,0)}}else{this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}}this.frameId=this.elem.globalData.frameId}function i(){if(!this.a.k){this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]);this.appliedTransformations=1}else{return}if(!this.s.effectsSequence.length){this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]);this.appliedTransformations=2}else{return}if(this.sk){if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length){this.pre.skewFromAxis(-this.sk.v,this.sa.v);this.appliedTransformations=3}else{return}}if(this.r){if(!this.r.effectsSequence.length){this.pre.rotate(-this.r.v);this.appliedTransformations=4}}else if(!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length){this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);this.appliedTransformations=4}}function a(){}function s(t){this._addDynamicProperty(t);this.elem.addDynamicProperty(t);this._isDirty=true}function n(t,e,r){this.elem=t;this.frameId=-1;this.propType="transform";this.data=e;this.v=new Matrix;this.pre=new Matrix;this.appliedTransformations=0;this.initDynamicPropertyContainer(r||t);if(e.p&&e.p.s){this.px=PropertyFactory.getProp(t,e.p.x,0,0,this);this.py=PropertyFactory.getProp(t,e.p.y,0,0,this);if(e.p.z){this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this)}}else{this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this)}if(e.rx){this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this);this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this);this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this);if(e.or.k[0].ti){var i;var a=e.or.k.length;for(i=0;i<a;i+=1){e.or.k[i].to=null;e.or.k[i].ti=null}}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this);this.or.sh=true}else{this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this)}if(e.sk){this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this);this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)}this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this);this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this);if(e.o){this.o=PropertyFactory.getProp(t,e.o,0,.01,t)}else{this.o={_mdf:false,v:1}}this._isDirty=true;if(!this.dynamicProperties.length){this.getValue(true)}}n.prototype={applyToMatrix:e,getValue:r,precalculateMatrix:i,autoOrient:a};extendPrototype([DynamicPropertyContainer],n);n.prototype.addDynamicProperty=s;n.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function o(t,e,r){return new n(t,e,r)}return{getTransformProperty:o}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier);RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys;this.c=PropertyFactory.getProp(t,e.c,0,null,this);this.o=PropertyFactory.getProp(t,e.o,0,null,this);this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this);this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this);this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this);this.data=e;if(!this.dynamicProperties.length){this.getValue(true)}this._isAnimated=!!this.dynamicProperties.length;this.pMatrix=new Matrix;this.rMatrix=new Matrix;this.sMatrix=new Matrix;this.tMatrix=new Matrix;this.matrix=new Matrix};RepeaterModifier.prototype.applyTransforms=function(t,e,r,i,a,s){var n=s?-1:1;var o=i.s.v[0]+(1-i.s.v[0])*(1-a);var h=i.s.v[1]+(1-i.s.v[1])*(1-a);t.translate(i.p.v[0]*n*a,i.p.v[1]*n*a,i.p.v[2]);e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]);e.rotate(-i.r.v*n*a);e.translate(i.a.v[0],i.a.v[1],i.a.v[2]);r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]);r.scale(s?1/o:o,s?1/h:h);r.translate(i.a.v[0],i.a.v[1],i.a.v[2])};RepeaterModifier.prototype.init=function(t,e,r,i){this.elem=t;this.arr=e;this.pos=r;this.elemsData=i;this._currentCopies=0;this._elements=[];this._groups=[];this.frameId=-1;this.initDynamicPropertyContainer(t);this.initModifierProperties(t,e[r]);while(r>0){r-=1;this._elements.unshift(e[r])}if(this.dynamicProperties.length){this.k=true}else{this.getValue(true)}};RepeaterModifier.prototype.resetElements=function(t){var e;var r=t.length;for(e=0;e<r;e+=1){t[e]._processed=false;if(t[e].ty==="gr"){this.resetElements(t[e].it)}}};RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));this.resetElements(e);return e};RepeaterModifier.prototype.changeGroupRender=function(t,e){var r;var i=t.length;for(r=0;r<i;r+=1){t[r]._render=e;if(t[r].ty==="gr"){this.changeGroupRender(t[r].it,e)}}};RepeaterModifier.prototype.processShapes=function(t){var e;var r;var i;var a;var s;var n=false;if(this._mdf||t){var o=Math.ceil(this.c.v);if(this._groups.length<o){while(this._groups.length<o){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"});this.arr.splice(0,0,h);this._groups.splice(0,0,h);this._currentCopies+=1}this.elem.reloadShapes();n=true}s=0;var l;for(i=0;i<=this._groups.length-1;i+=1){l=s<o;this._groups[i]._render=l;this.changeGroupRender(this._groups[i].it,l);if(!l){var f=this.elemsData[i].it;var p=f[f.length-1];if(p.transform.op.v!==0){p.transform.op._mdf=true;p.transform.op.v=0}else{p.transform.op._mdf=false}}s+=1}this._currentCopies=o;var m=this.o.v;var c=m%1;var u=m>0?Math.floor(m):Math.ceil(m);var d=this.pMatrix.props;var v=this.rMatrix.props;var y=this.sMatrix.props;this.pMatrix.reset();this.rMatrix.reset();this.sMatrix.reset();this.tMatrix.reset();this.matrix.reset();var g=0;if(m>0){while(g<u){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,false);g+=1}if(c){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,c,false);g+=c}}else if(m<0){while(g>u){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,true);g-=1}if(c){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-c,true);g-=c}}i=this.data.m===1?0:this._currentCopies-1;a=this.data.m===1?1:-1;s=this._currentCopies;var b;var P;while(s){e=this.elemsData[i].it;r=e[e.length-1].transform.mProps.v.props;P=r.length;e[e.length-1].transform.mProps._mdf=true;e[e.length-1].transform.op._mdf=true;e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1));if(g!==0){if(i!==0&&a===1||i!==this._currentCopies-1&&a===-1){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,false)}this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]);this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]);this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]);for(b=0;b<P;b+=1){r[b]=this.matrix.props[b]}this.matrix.reset()}else{this.matrix.reset();for(b=0;b<P;b+=1){r[b]=this.matrix.props[b]}}g+=1;s-=1;i+=a}}else{s=this._currentCopies;i=0;a=1;while(s){e=this.elemsData[i].it;r=e[e.length-1].transform.mProps.v.props;e[e.length-1].transform.mProps._mdf=false;e[e.length-1].transform.op._mdf=false;s-=1;i+=a}}return n};RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier);RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys;this.rd=PropertyFactory.getProp(t,e.r,0,null,this);this._isAnimated=!!this.rd.effectsSequence.length};RoundCornersModifier.prototype.processPath=function(t,e){var r=shapePool.newElement();r.c=t.c;var i;var a=t._length;var s;var n;var o;var h;var l;var f;var p=0;var m;var c;var u;var d;var v;var y;for(i=0;i<a;i+=1){s=t.v[i];o=t.o[i];n=t.i[i];if(s[0]===o[0]&&s[1]===o[1]&&s[0]===n[0]&&s[1]===n[1]){if((i===0||i===a-1)&&!t.c){r.setTripleAt(s[0],s[1],o[0],o[1],n[0],n[1],p);p+=1}else{if(i===0){h=t.v[a-1]}else{h=t.v[i-1]}l=Math.sqrt(Math.pow(s[0]-h[0],2)+Math.pow(s[1]-h[1],2));f=l?Math.min(l/2,e)/l:0;v=s[0]+(h[0]-s[0])*f;m=v;y=s[1]-(s[1]-h[1])*f;c=y;u=m-(m-s[0])*roundCorner;d=c-(c-s[1])*roundCorner;r.setTripleAt(m,c,u,d,v,y,p);p+=1;if(i===a-1){h=t.v[0]}else{h=t.v[i+1]}l=Math.sqrt(Math.pow(s[0]-h[0],2)+Math.pow(s[1]-h[1],2));f=l?Math.min(l/2,e)/l:0;u=s[0]+(h[0]-s[0])*f;m=u;d=s[1]+(h[1]-s[1])*f;c=d;v=m-(m-s[0])*roundCorner;y=c-(c-s[1])*roundCorner;r.setTripleAt(m,c,u,d,v,y,p);p+=1}}else{r.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],p);p+=1}}return r};RoundCornersModifier.prototype.processShapes=function(t){var e;var r;var i=this.shapes.length;var a;var s;var n=this.rd.v;if(n!==0){var o;var h;for(r=0;r<i;r+=1){o=this.shapes[r];h=o.localShapeCollection;if(!(!o.shape._mdf&&!this._mdf&&!t)){h.releaseShapes();o.shape._mdf=true;e=o.shape.paths.shapes;s=o.shape.paths._length;for(a=0;a<s;a+=1){h.addShape(this.processPath(e[a],n))}}o.shape.paths=o.localShapeCollection}}if(!this.dynamicProperties.length){this._mdf=false}};function getFontProperties(t){var e=t.fStyle?t.fStyle.split(" "):[];var r="normal";var i="normal";var a=e.length;var s;for(var n=0;n<a;n+=1){s=e[n].toLowerCase();switch(s){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200";break;default:break}}return{style:i,weight:t.fWeight||r}}const FontManager=function(){var t=5e3;var e={w:0,size:0,shapes:[],data:{shapes:[]}};var r=[];r=r.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];var a=[65039,8205];function s(t){var e=t.split(",");var r;var i=e.length;var a=[];for(r=0;r<i;r+=1){if(e[r]!=="sans-serif"&&e[r]!=="monospace"){a.push(e[r])}}return a.join(",")}function n(t,e){var r=createTag("span");r.setAttribute("aria-hidden",true);r.style.fontFamily=e;var i=createTag("span");i.innerText="giItT1WQy@!-/#";r.style.position="absolute";r.style.left="-10000px";r.style.top="-10000px";r.style.fontSize="300px";r.style.fontVariant="normal";r.style.fontStyle="normal";r.style.fontWeight="normal";r.style.letterSpacing="0";r.appendChild(i);document.body.appendChild(r);var a=i.offsetWidth;i.style.fontFamily=s(t)+", "+e;return{node:i,w:a,parent:r}}function o(){var e;var r=this.fonts.length;var i;var a;var s=r;for(e=0;e<r;e+=1){if(this.fonts[e].loaded){s-=1}else if(this.fonts[e].fOrigin==="n"||this.fonts[e].origin===0){this.fonts[e].loaded=true}else{i=this.fonts[e].monoCase.node;a=this.fonts[e].monoCase.w;if(i.offsetWidth!==a){s-=1;this.fonts[e].loaded=true}else{i=this.fonts[e].sansCase.node;a=this.fonts[e].sansCase.w;if(i.offsetWidth!==a){s-=1;this.fonts[e].loaded=true}}if(this.fonts[e].loaded){this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent);this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)}}}if(s!==0&&Date.now()-this.initTime<t){setTimeout(this.checkLoadedFontsBinded,20)}else{setTimeout(this.setIsLoadedBinded,10)}}function h(t,e){var r=document.body&&e?"svg":"canvas";var i;var a=getFontProperties(t);if(r==="svg"){var s=createNS("text");s.style.fontSize="100px";s.setAttribute("font-family",t.fFamily);s.setAttribute("font-style",a.style);s.setAttribute("font-weight",a.weight);s.textContent="1";if(t.fClass){s.style.fontFamily="inherit";s.setAttribute("class",t.fClass)}else{s.style.fontFamily=t.fFamily}e.appendChild(s);i=s}else{var n=new OffscreenCanvas(500,500).getContext("2d");n.font=a.style+" "+a.weight+" 100px "+t.fFamily;i=n}function o(t){if(r==="svg"){i.textContent=t;return i.getComputedTextLength()}return i.measureText(t).width}return{measureText:o}}function l(t,e){if(!t){this.isLoaded=true;return}if(this.chars){this.isLoaded=true;this.fonts=t.list;return}if(!document.body){this.isLoaded=true;t.list.forEach((t=>{t.helper=h(t);t.cache={}}));this.fonts=t.list;return}var r=t.list;var i;var a=r.length;var s=a;for(i=0;i<a;i+=1){var o=true;var l;var f;r[i].loaded=false;r[i].monoCase=n(r[i].fFamily,"monospace");r[i].sansCase=n(r[i].fFamily,"sans-serif");if(!r[i].fPath){r[i].loaded=true;s-=1}else if(r[i].fOrigin==="p"||r[i].origin===3){l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[i].fFamily+'"], style[f-origin="3"][f-family="'+r[i].fFamily+'"]');if(l.length>0){o=false}if(o){var p=createTag("style");p.setAttribute("f-forigin",r[i].fOrigin);p.setAttribute("f-origin",r[i].origin);p.setAttribute("f-family",r[i].fFamily);p.type="text/css";p.innerText="@font-face {font-family: "+r[i].fFamily+"; font-style: normal; src: url('"+r[i].fPath+"');}";e.appendChild(p)}}else if(r[i].fOrigin==="g"||r[i].origin===1){l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');for(f=0;f<l.length;f+=1){if(l[f].href.indexOf(r[i].fPath)!==-1){o=false}}if(o){var m=createTag("link");m.setAttribute("f-forigin",r[i].fOrigin);m.setAttribute("f-origin",r[i].origin);m.type="text/css";m.rel="stylesheet";m.href=r[i].fPath;document.body.appendChild(m)}}else if(r[i].fOrigin==="t"||r[i].origin===2){l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');for(f=0;f<l.length;f+=1){if(r[i].fPath===l[f].src){o=false}}if(o){var c=createTag("link");c.setAttribute("f-forigin",r[i].fOrigin);c.setAttribute("f-origin",r[i].origin);c.setAttribute("rel","stylesheet");c.setAttribute("href",r[i].fPath);e.appendChild(c)}}r[i].helper=h(r[i],e);r[i].cache={};this.fonts.push(r[i])}if(s===0){this.isLoaded=true}else{setTimeout(this.checkLoadedFonts.bind(this),100)}}function f(t){if(!t){return}if(!this.chars){this.chars=[]}var e;var r=t.length;var i;var a=this.chars.length;var s;for(e=0;e<r;e+=1){i=0;s=false;while(i<a){if(this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch){s=true}i+=1}if(!s){this.chars.push(t[e]);a+=1}}}function p(t,r,i){var a=0;var s=this.chars.length;while(a<s){if(this.chars[a].ch===t&&this.chars[a].style===r&&this.chars[a].fFamily===i){return this.chars[a]}a+=1}if((typeof t==="string"&&t.charCodeAt(0)!==13||!t)&&console&&console.warn&&!this._warned){this._warned=true;console.warn("Missing character from exported characters list: ",t,r,i)}return e}function m(t,e,r){var i=this.getFontByName(e);var a=t.charCodeAt(0);if(!i.cache[a+1]){var s=i.helper;if(t===" "){var n=s.measureText("|"+t+"|");var o=s.measureText("||");i.cache[a+1]=(n-o)/100}else{i.cache[a+1]=s.measureText(t)/100}}return i.cache[a+1]*r}function c(t){var e=0;var r=this.fonts.length;while(e<r){if(this.fonts[e].fName===t){return this.fonts[e]}e+=1}return this.fonts[0]}function u(t,e){var r=t.toString(16)+e.toString(16);return i.indexOf(r)!==-1}function d(t,e){if(!e){return t===a[1]}return t===a[0]&&e===a[1]}function v(t){return r.indexOf(t)!==-1}function y(){this.isLoaded=true}var g=function(){this.fonts=[];this.chars=null;this.typekitLoaded=0;this.isLoaded=false;this._warned=false;this.initTime=Date.now();this.setIsLoadedBinded=this.setIsLoaded.bind(this);this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};g.isModifier=u;g.isZeroWidthJoiner=d;g.isCombinedCharacter=v;var b={addChars:f,addFonts:l,getCharData:p,getFontByName:c,measureText:m,checkLoadedFonts:o,setIsLoaded:y};g.prototype=b;return g}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=false;this.hidden=false;this.isTransparent=false;this.renderableComponents=[]},addRenderableComponent:function(t){if(this.renderableComponents.indexOf(t)===-1){this.renderableComponents.push(t)}},removeRenderableComponent:function(t){if(this.renderableComponents.indexOf(t)!==-1){this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)}},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){if(this.finalTransform.mProp.o.v<=0){if(!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent){this.isTransparent=true;this.hide()}}else if(this.isTransparent){this.isTransparent=false;this.show()}},checkLayerLimits:function(t){if(this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t){if(this.isInRange!==true){this.globalData._mdf=true;this._mdf=true;this.isInRange=true;this.show()}}else if(this.isInRange!==false){this.globalData._mdf=true;this.isInRange=false;this.hide()}},renderRenderable:function(){var t;var e=this.renderableComponents.length;for(t=0;t<e;t+=1){this.renderableComponents[t].renderFrame(this._isFirstFrame)}},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){if(this.data.ty===5){return{w:this.data.textData.width,h:this.data.textData.height}}return{w:this.data.width,h:this.data.height}}};const MaskManagerInterface=function(){function t(t,e){this._mask=t;this._data=e}Object.defineProperty(t.prototype,"maskPath",{get:function(){if(this._mask.prop.k){this._mask.prop.getValue()}return this._mask.prop}});Object.defineProperty(t.prototype,"maskOpacity",{get:function(){if(this._mask.op.k){this._mask.op.getValue()}return this._mask.op.v*100}});var e=function(e){var r=createSizedArray(e.viewData.length);var i;var a=e.viewData.length;for(i=0;i<a;i+=1){r[i]=new t(e.viewData[i],e.masksProperties[i])}var s=function(t){i=0;while(i<a){if(e.masksProperties[i].nm===t){return r[i]}i+=1}return null};return s};return e}();const ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1};var e={pv:[0,0,0],v:[0,0,0],mult:1};function r(t,e,r){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}});t.numKeys=e.keyframes?e.keyframes.length:0;t.key=function(i){if(!t.numKeys){return 0}var a="";if("s"in e.keyframes[i-1]){a=e.keyframes[i-1].s}else if("e"in e.keyframes[i-2]){a=e.keyframes[i-2].e}else{a=e.keyframes[i-2].s}var s=r==="unidimensional"?new Number(a):Object.assign({},a);s.time=e.keyframes[i-1].t/e.elem.comp.globalData.frameRate;s.value=r==="unidimensional"?a[0]:a;return s};t.valueAtTime=e.getValueAtTime;t.speedAtTime=e.getSpeedAtTime;t.velocityAtTime=e.getVelocityAtTime;t.propertyGroup=e.propertyGroup}function i(e){if(!e||!("pv"in e)){e=t}var i=1/e.mult;var a=e.pv*i;var s=new Number(a);s.value=a;r(s,e,"unidimensional");return function(){if(e.k){e.getValue()}a=e.v*i;if(s.value!==a){s=new Number(a);s.value=a;r(s,e,"unidimensional")}return s}}function a(t){if(!t||!("pv"in t)){t=e}var i=1/t.mult;var a=t.data&&t.data.l||t.pv.length;var s=createTypedArray("float32",a);var n=createTypedArray("float32",a);s.value=n;r(s,t,"multidimensional");return function(){if(t.k){t.getValue()}for(var e=0;e<a;e+=1){n[e]=t.v[e]*i;s[e]=n[e]}return s}}function s(){return t}return function(t){if(!t){return s}if(t.propType==="unidimensional"){return i(t)}return a(t)}}();const TransformExpressionInterface=function(){return function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)});Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)});Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)});Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)});Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)});var r;var i;var a;var s;if(t.p){s=ExpressionPropertyInterface(t.p)}else{r=ExpressionPropertyInterface(t.px);i=ExpressionPropertyInterface(t.py);if(t.pz){a=ExpressionPropertyInterface(t.pz)}}Object.defineProperty(e,"position",{get:function(){if(t.p){return s()}return[r(),i(),a?a():0]}});Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)});Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)});Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)});Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)});Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)});Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)});Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)});Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)});return e}}();const LayerExpressionInterface=function(){function t(t){var e=new Matrix;if(t!==undefined){var r=this._elem.finalTransform.mProp.getValueAtTime(t);r.clone(e)}else{var i=this._elem.finalTransform.mProp;i.applyToMatrix(e)}return e}function e(t,e){var r=this.getMatrix(e);r.props[12]=0;r.props[13]=0;r.props[14]=0;return this.applyPoint(r,t)}function r(t,e){var r=this.getMatrix(e);return this.applyPoint(r,t)}function i(t,e){var r=this.getMatrix(e);r.props[12]=0;r.props[13]=0;r.props[14]=0;return this.invertPoint(r,t)}function a(t,e){var r=this.getMatrix(e);return this.invertPoint(r,t)}function s(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r;var i=this._elem.hierarchy.length;for(r=0;r<i;r+=1){this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}}return t.applyToPointArray(e[0],e[1],e[2]||0)}function n(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r;var i=this._elem.hierarchy.length;for(r=0;r<i;r+=1){this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}}return t.inversePoint(e)}function o(t){var e=new Matrix;e.reset();this._elem.finalTransform.mProp.applyToMatrix(e);if(this._elem.hierarchy&&this._elem.hierarchy.length){var r;var i=this._elem.hierarchy.length;for(r=0;r<i;r+=1){this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}return e.inversePoint(t)}function h(){return[1,1,1,1]}return function(l){var f;function p(t){c.mask=new MaskManagerInterface(t,l)}function m(t){c.effect=t}function c(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return c.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return f;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return c.effect;case"ADBE Text Properties":return c.textInterface;default:return null}}c.getMatrix=t;c.invertPoint=n;c.applyPoint=s;c.toWorld=r;c.toWorldVec=e;c.fromWorld=a;c.fromWorldVec=i;c.toComp=r;c.fromComp=o;c.sampleImage=h;c.sourceRectAtTime=l.sourceRectAtTime.bind(l);c._elem=l;f=TransformExpressionInterface(l.finalTransform.mProp);var u=getDescriptor(f,"anchorPoint");Object.defineProperties(c,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy[0].layerInterface}},rotation:getDescriptor(f,"rotation"),scale:getDescriptor(f,"scale"),position:getDescriptor(f,"position"),opacity:getDescriptor(f,"opacity"),anchorPoint:u,anchor_point:u,transform:{get:function(){return f}},active:{get:function(){return l.isInRange}}});c.startTime=l.data.st;c.index=l.data.ind;c.source=l.data.refId;c.height=l.data.ty===0?l.data.h:100;c.width=l.data.ty===0?l.data.w:100;c.inPoint=l.data.ip/l.comp.globalData.frameRate;c.outPoint=l.data.op/l.comp.globalData.frameRate;c._name=l.data.nm;c.registerMaskInterface=p;c.registerEffectsInterface=m;return c}}();const propertyGroupFactory=function(){return function(t,e){return function(r){r=r===undefined?1:r;if(r<=0){return t}return e(r-1)}}}();const PropertyInterface=function(){return function(t,e){var r={_name:t};function i(t){t=t===undefined?1:t;if(t<=0){return r}return e(t-1)}return i}}();const EffectsExpressionInterface=function(){var t={createEffectsInterface:e};function e(t,e){if(t.effectsManager){var i=[];var a=t.data.ef;var s;var n=t.effectsManager.effectElements.length;for(s=0;s<n;s+=1){i.push(r(a[s],t.effectsManager.effectElements[s],e,t))}var o=t.data.ef||[];var h=function(t){s=0;n=o.length;while(s<n){if(t===o[s].nm||t===o[s].mn||t===o[s].ix){return i[s]}s+=1}return null};Object.defineProperty(h,"numProperties",{get:function(){return o.length}});return h}return null}function r(t,e,a,s){function n(e){var r=t.ef;var i=0;var a=r.length;while(i<a){if(e===r[i].nm||e===r[i].mn||e===r[i].ix){if(r[i].ty===5){return h[i]}return h[i]()}i+=1}throw new Error}var o=propertyGroupFactory(n,a);var h=[];var l;var f=t.ef.length;for(l=0;l<f;l+=1){if(t.ef[l].ty===5){h.push(r(t.ef[l],e.effectElements[l],e.effectElements[l].propertyGroup,s))}else{h.push(i(e.effectElements[l],t.ef[l].ty,s,o))}}if(t.mn==="ADBE Color Control"){Object.defineProperty(n,"color",{get:function(){return h[0]()}})}Object.defineProperties(n,{numProperties:{get:function(){return t.np}},_name:{value:t.nm},propertyGroup:{value:o}});n.enabled=t.en!==0;n.active=n.enabled;return n}function i(t,e,r,i){var a=ExpressionPropertyInterface(t.p);function s(){if(e===10){return r.comp.compInterface(t.p.v)}return a()}if(t.p.setGroupProperty){t.p.setGroupProperty(PropertyInterface("",i))}return s}return t}();const CompExpressionInterface=function(){return function(t){function e(e){var r=0;var i=t.layers.length;while(r<i){if(t.layers[r].nm===e||t.layers[r].ind===e){return t.elements[r].layerInterface}r+=1}return null}Object.defineProperty(e,"_name",{value:t.data.nm});e.layer=e;e.pixelAspect=1;e.height=t.data.h||t.globalData.compSize.h;e.width=t.data.w||t.globalData.compSize.w;e.pixelAspect=1;e.frameDuration=1/t.globalData.frameRate;e.displayStartTime=0;e.numLayers=t.layers.length;return e}}();const ShapePathInterface=function(){return function t(e,r,i){var a=r.sh;function s(t){if(t==="Shape"||t==="shape"||t==="Path"||t==="path"||t==="ADBE Vector Shape"||t===2){return s.path}return null}var n=propertyGroupFactory(s,i);a.setGroupProperty(PropertyInterface("Path",n));Object.defineProperties(s,{path:{get:function(){if(a.k){a.getValue()}return a}},shape:{get:function(){if(a.k){a.getValue()}return a}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:i}});return s}}();const ShapeExpressionInterface=function(){function t(t,e,h){var u=[];var d;var v=t?t.length:0;for(d=0;d<v;d+=1){if(t[d].ty==="gr"){u.push(r(t[d],e[d],h))}else if(t[d].ty==="fl"){u.push(i(t[d],e[d],h))}else if(t[d].ty==="st"){u.push(n(t[d],e[d],h))}else if(t[d].ty==="tm"){u.push(o(t[d],e[d],h))}else if(t[d].ty==="tr");else if(t[d].ty==="el"){u.push(l(t[d],e[d],h))}else if(t[d].ty==="sr"){u.push(f(t[d],e[d],h))}else if(t[d].ty==="sh"){u.push(ShapePathInterface(t[d],e[d],h))}else if(t[d].ty==="rc"){u.push(p(t[d],e[d],h))}else if(t[d].ty==="rd"){u.push(m(t[d],e[d],h))}else if(t[d].ty==="rp"){u.push(c(t[d],e[d],h))}else if(t[d].ty==="gf"){u.push(a(t[d],e[d],h))}else{u.push(s(t[d],e[d],h))}}return u}function e(e,r,i){var a;var s=function t(e){var r=0;var i=a.length;while(r<i){if(a[r]._name===e||a[r].mn===e||a[r].propertyIndex===e||a[r].ix===e||a[r].ind===e){return a[r]}r+=1}if(typeof e==="number"){return a[e-1]}return null};s.propertyGroup=propertyGroupFactory(s,i);a=t(e.it,r.it,s.propertyGroup);s.numProperties=a.length;var n=h(e.it[e.it.length-1],r.it[r.it.length-1],s.propertyGroup);s.transform=n;s.propertyIndex=e.cix;s._name=e.nm;return s}function r(t,r,i){var a=function t(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return a.content;default:return a.transform}};a.propertyGroup=propertyGroupFactory(a,i);var s=e(t,r,a.propertyGroup);var n=h(t.it[t.it.length-1],r.it[r.it.length-1],a.propertyGroup);a.content=s;a.transform=n;Object.defineProperty(a,"_name",{get:function(){return t.nm}});a.numProperties=t.np;a.propertyIndex=t.ix;a.nm=t.nm;a.mn=t.mn;return a}function i(t,e,r){function i(t){if(t==="Color"||t==="color"){return i.color}if(t==="Opacity"||t==="opacity"){return i.opacity}return null}Object.defineProperties(i,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}});e.c.setGroupProperty(PropertyInterface("Color",r));e.o.setGroupProperty(PropertyInterface("Opacity",r));return i}function a(t,e,r){function i(t){if(t==="Start Point"||t==="start point"){return i.startPoint}if(t==="End Point"||t==="end point"){return i.endPoint}if(t==="Opacity"||t==="opacity"){return i.opacity}return null}Object.defineProperties(i,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}});e.s.setGroupProperty(PropertyInterface("Start Point",r));e.e.setGroupProperty(PropertyInterface("End Point",r));e.o.setGroupProperty(PropertyInterface("Opacity",r));return i}function s(){function t(){return null}return t}function n(t,e,r){var i=propertyGroupFactory(l,r);var a=propertyGroupFactory(h,i);function s(r){Object.defineProperty(h,t.d[r].nm,{get:ExpressionPropertyInterface(e.d.dataProps[r].p)})}var n;var o=t.d?t.d.length:0;var h={};for(n=0;n<o;n+=1){s(n);e.d.dataProps[n].p.setGroupProperty(a)}function l(t){if(t==="Color"||t==="color"){return l.color}if(t==="Opacity"||t==="opacity"){return l.opacity}if(t==="Stroke Width"||t==="stroke width"){return l.strokeWidth}return null}Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return h}},_name:{value:t.nm},mn:{value:t.mn}});e.c.setGroupProperty(PropertyInterface("Color",i));e.o.setGroupProperty(PropertyInterface("Opacity",i));e.w.setGroupProperty(PropertyInterface("Stroke Width",i));return l}function o(t,e,r){function i(e){if(e===t.e.ix||e==="End"||e==="end"){return i.end}if(e===t.s.ix){return i.start}if(e===t.o.ix){return i.offset}return null}var a=propertyGroupFactory(i,r);i.propertyIndex=t.ix;e.s.setGroupProperty(PropertyInterface("Start",a));e.e.setGroupProperty(PropertyInterface("End",a));e.o.setGroupProperty(PropertyInterface("Offset",a));i.propertyIndex=t.ix;i.propertyGroup=r;Object.defineProperties(i,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}});i.mn=t.mn;return i}function h(t,e,r){function i(e){if(t.a.ix===e||e==="Anchor Point"){return i.anchorPoint}if(t.o.ix===e||e==="Opacity"){return i.opacity}if(t.p.ix===e||e==="Position"){return i.position}if(t.r.ix===e||e==="Rotation"||e==="ADBE Vector Rotation"){return i.rotation}if(t.s.ix===e||e==="Scale"){return i.scale}if(t.sk&&t.sk.ix===e||e==="Skew"){return i.skew}if(t.sa&&t.sa.ix===e||e==="Skew Axis"){return i.skewAxis}return null}var a=propertyGroupFactory(i,r);e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",a));e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",a));e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",a));e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",a));e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",a));if(e.transform.mProps.sk){e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",a));e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",a))}e.transform.op.setGroupProperty(PropertyInterface("Opacity",a));Object.defineProperties(i,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}});i.ty="tr";i.mn=t.mn;i.propertyGroup=r;return i}function l(t,e,r){function i(e){if(t.p.ix===e){return i.position}if(t.s.ix===e){return i.size}return null}var a=propertyGroupFactory(i,r);i.propertyIndex=t.ix;var s=e.sh.ty==="tm"?e.sh.prop:e.sh;s.s.setGroupProperty(PropertyInterface("Size",a));s.p.setGroupProperty(PropertyInterface("Position",a));Object.defineProperties(i,{size:{get:ExpressionPropertyInterface(s.s)},position:{get:ExpressionPropertyInterface(s.p)},_name:{value:t.nm}});i.mn=t.mn;return i}function f(t,e,r){function i(e){if(t.p.ix===e){return i.position}if(t.r.ix===e){return i.rotation}if(t.pt.ix===e){return i.points}if(t.or.ix===e||e==="ADBE Vector Star Outer Radius"){return i.outerRadius}if(t.os.ix===e){return i.outerRoundness}if(t.ir&&(t.ir.ix===e||e==="ADBE Vector Star Inner Radius")){return i.innerRadius}if(t.is&&t.is.ix===e){return i.innerRoundness}return null}var a=propertyGroupFactory(i,r);var s=e.sh.ty==="tm"?e.sh.prop:e.sh;i.propertyIndex=t.ix;s.or.setGroupProperty(PropertyInterface("Outer Radius",a));s.os.setGroupProperty(PropertyInterface("Outer Roundness",a));s.pt.setGroupProperty(PropertyInterface("Points",a));s.p.setGroupProperty(PropertyInterface("Position",a));s.r.setGroupProperty(PropertyInterface("Rotation",a));if(t.ir){s.ir.setGroupProperty(PropertyInterface("Inner Radius",a));s.is.setGroupProperty(PropertyInterface("Inner Roundness",a))}Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(s.p)},rotation:{get:ExpressionPropertyInterface(s.r)},points:{get:ExpressionPropertyInterface(s.pt)},outerRadius:{get:ExpressionPropertyInterface(s.or)},outerRoundness:{get:ExpressionPropertyInterface(s.os)},innerRadius:{get:ExpressionPropertyInterface(s.ir)},innerRoundness:{get:ExpressionPropertyInterface(s.is)},_name:{value:t.nm}});i.mn=t.mn;return i}function p(t,e,r){function i(e){if(t.p.ix===e){return i.position}if(t.r.ix===e){return i.roundness}if(t.s.ix===e||e==="Size"||e==="ADBE Vector Rect Size"){return i.size}return null}var a=propertyGroupFactory(i,r);var s=e.sh.ty==="tm"?e.sh.prop:e.sh;i.propertyIndex=t.ix;s.p.setGroupProperty(PropertyInterface("Position",a));s.s.setGroupProperty(PropertyInterface("Size",a));s.r.setGroupProperty(PropertyInterface("Rotation",a));Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(s.p)},roundness:{get:ExpressionPropertyInterface(s.r)},size:{get:ExpressionPropertyInterface(s.s)},_name:{value:t.nm}});i.mn=t.mn;return i}function m(t,e,r){function i(e){if(t.r.ix===e||e==="Round Corners 1"){return i.radius}return null}var a=propertyGroupFactory(i,r);var s=e;i.propertyIndex=t.ix;s.rd.setGroupProperty(PropertyInterface("Radius",a));Object.defineProperties(i,{radius:{get:ExpressionPropertyInterface(s.rd)},_name:{value:t.nm}});i.mn=t.mn;return i}function c(t,e,r){function i(e){if(t.c.ix===e||e==="Copies"){return i.copies}if(t.o.ix===e||e==="Offset"){return i.offset}return null}var a=propertyGroupFactory(i,r);var s=e;i.propertyIndex=t.ix;s.c.setGroupProperty(PropertyInterface("Copies",a));s.o.setGroupProperty(PropertyInterface("Offset",a));Object.defineProperties(i,{copies:{get:ExpressionPropertyInterface(s.c)},offset:{get:ExpressionPropertyInterface(s.o)},_name:{value:t.nm}});i.mn=t.mn;return i}return function(e,r,i){var a;function s(t){if(typeof t==="number"){t=t===undefined?1:t;if(t===0){return i}return a[t-1]}var e=0;var r=a.length;while(e<r){if(a[e]._name===t){return a[e]}e+=1}return null}function n(){return i}s.propertyGroup=propertyGroupFactory(s,n);a=t(e,r,s.propertyGroup);s.numProperties=a.length;s._name="Contents";return s}}();const TextExpressionInterface=function(){return function(t){var e;var r;function i(t){switch(t){case"ADBE Text Document":return i.sourceText;default:return null}}Object.defineProperty(i,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;if(i!==e){t.textProperty.currentData.t=e;r=new String(i);r.value=i||new String(i)}return r}});return i}}();const getBlendMode=function(){var t={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(e){return t[e]||""}}();function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var r=t.ef||[];this.effectElements=[];var i;var a=r.length;var s;for(i=0;i<a;i+=1){s=new GroupEffect(r[i],e);this.effectElements.push(s)}}function GroupEffect(t,e){this.init(t,e)}extendPrototype([DynamicPropertyContainer],GroupEffect);GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties;GroupEffect.prototype.init=function(t,e){this.data=t;this.effectElements=[];this.initDynamicPropertyContainer(e);var r;var i=this.data.ef.length;var a;var s=this.data.ef;for(r=0;r<i;r+=1){a=null;switch(s[r].ty){case 0:a=new SliderEffect(s[r],e,this);break;case 1:a=new AngleEffect(s[r],e,this);break;case 2:a=new ColorEffect(s[r],e,this);break;case 3:a=new PointEffect(s[r],e,this);break;case 4:case 7:a=new CheckboxEffect(s[r],e,this);break;case 10:a=new LayerIndexEffect(s[r],e,this);break;case 11:a=new MaskIndexEffect(s[r],e,this);break;case 5:a=new EffectsManager(s[r],e,this);break;default:a=new NoValueEffect(s[r],e,this);break}if(a){this.effectElements.push(a)}}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask){return false}var t=0;var e=this.data.masksProperties.length;while(t<e){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==false){return true}t+=1}return false},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this);if(this.data.hasMask&&this.maskManager){this.layerInterface.registerMaskInterface(this.maskManager)}var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t);if(this.data.ty===0||this.data.xt){this.compInterface=CompExpressionInterface(this)}else if(this.data.ty===4){this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface);this.layerInterface.content=this.layerInterface.shapeInterface}else if(this.data.ty===5){this.layerInterface.textInterface=TextExpressionInterface(this);this.layerInterface.text=this.layerInterface.textInterface}},setBlendMode:function(){var t=getBlendMode(this.data.bm);var e=this.baseElement||this.layerElement;e.style["mix-blend-mode"]=t},initBaseData:function(t,e,r){this.globalData=e;this.comp=r;this.data=t;this.layerId=createElementID();if(!this.data.sr){this.data.sr=1}this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=false;this.dynamicProperties=[];this._mdf=false},prepareProperties:function(t,e){var r;var i=this.dynamicProperties.length;for(r=0;r<i;r+=1){if(e||this._isParent&&this.dynamicProperties[r].propType==="transform"){this.dynamicProperties[r].getValue();if(this.dynamicProperties[r]._mdf){this.globalData._mdf=true;this._mdf=true}}}},addDynamicProperty:function(t){if(this.dynamicProperties.indexOf(t)===-1){this.dynamicProperties.push(t)}}};const FootageInterface=function(){var t=function(t){var e="";var r=t.getFootageData();function i(){e="";r=t.getFootageData();return a}function a(t){if(r[t]){e=t;r=r[t];if(typeof r==="object"){return a}return r}var i=t.indexOf(e);if(i!==-1){var s=parseInt(t.substr(i+e.length),10);r=r[s];if(typeof r==="object"){return a}return r}return""}return i};var e=function(e){function r(t){if(t==="Outline"){return r.outlineInterface()}return null}r._name="Outline";r.outlineInterface=t(e);return r};return function(t){function r(t){if(t==="Data"){return r.dataInterface}return null}r._name="Data";r.dataInterface=e(t);return r}}();function FootageElement(t,e,r){this.initFrame();this.initRenderable();this.assetData=e.getAssetData(t.refId);this.footageData=e.imageLoader.getAsset(this.assetData);this.initBaseData(t,e,r)}FootageElement.prototype.prepareFrame=function(){};extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement);FootageElement.prototype.getBaseElement=function(){return null};FootageElement.prototype.renderFrame=function(){};FootageElement.prototype.destroy=function(){};FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)};FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(t,e,r){this.initFrame();this.initRenderable();this.assetData=e.getAssetData(t.refId);this.initBaseData(t,e,r);this._isPlaying=false;this._canPlay=false;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i);this._currentTime=0;this.globalData.audioController.addAudio(this);this._volumeMultiplier=1;this._volume=1;this._previousVolume=null;this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:true};this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(t){this.prepareRenderableFrame(t,true);this.prepareProperties(t,true);if(!this.tm._placeholder){var e=this.tm.v;this._currentTime=e}else{this._currentTime=t/this.data.sr}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;if(this._previousVolume!==r){this._previousVolume=r;this.audio.volume(r)}};extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement);AudioElement.prototype.renderFrame=function(){if(this.isInRange&&this._canPlay){if(!this._isPlaying){this.audio.play();this.audio.seek(this._currentTime/this.globalData.frameRate);this._isPlaying=true}else if(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1){this.audio.seek(this._currentTime/this.globalData.frameRate)}}};AudioElement.prototype.show=function(){};AudioElement.prototype.hide=function(){this.audio.pause();this._isPlaying=false};AudioElement.prototype.pause=function(){this.audio.pause();this._isPlaying=false;this._canPlay=false};AudioElement.prototype.resume=function(){this._canPlay=true};AudioElement.prototype.setRate=function(t){this.audio.rate(t)};AudioElement.prototype.volume=function(t){this._volumeMultiplier=t;this._previousVolume=t*this._volume;this.audio.volume(this._previousVolume)};AudioElement.prototype.getBaseElement=function(){return null};AudioElement.prototype.destroy=function(){};AudioElement.prototype.sourceRectAtTime=function(){};AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(t){var e;var r=this.layers.length;var i;this.completeLayers=true;for(e=r-1;e>=0;e-=1){if(!this.elements[e]){i=this.layers[e];if(i.ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st){this.buildItem(e)}}this.completeLayers=this.elements[e]?this.completeLayers:false}this.checkPendingElements()};BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}};BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")};BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)};BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)};BaseRenderer.prototype.buildAllItems=function(){var t;var e=this.layers.length;for(t=0;t<e;t+=1){this.buildItem(t)}this.checkPendingElements()};BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=false;var e;var r=t.length;var i;var a=this.layers.length;for(e=0;e<r;e+=1){i=0;while(i<a){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}}};BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t};BaseRenderer.prototype.initItems=function(){if(!this.globalData.progressiveLoad){this.buildAllItems()}};BaseRenderer.prototype.buildElementParenting=function(t,e,r){var i=this.elements;var a=this.layers;var s=0;var n=a.length;while(s<n){if(a[s].ind==e){if(!i[s]||i[s]===true){this.buildItem(s);this.addPendingElement(t)}else{r.push(i[s]);i[s].setAsParent();if(a[s].parent!==undefined){this.buildElementParenting(t,a[s].parent,r)}else{t.setHierarchy(r)}}}s+=1}};BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)};BaseRenderer.prototype.searchExtraCompositions=function(t){var e;var r=t.length;for(e=0;e<r;e+=1){if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions();this.globalData.projectInterface.registerComposition(i)}}};BaseRenderer.prototype.getElementByPath=function(t){var e=t.shift();var r;if(typeof e==="number"){r=this.elements[e]}else{var i;var a=this.elements.length;for(i=0;i<a;i+=1){if(this.elements[i].data.nm===e){r=this.elements[i];break}}}if(t.length===0){return r}return r.getElementByPath(t)};BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager;this.globalData.fontManager.addChars(t.chars);this.globalData.fontManager.addFonts(t.fonts,e);this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem);this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem);this.globalData.imageLoader=this.animationItem.imagePreloader;this.globalData.audioController=this.animationItem.audioController;this.globalData.frameId=0;this.globalData.frameRate=t.fr;this.globalData.nm=t.nm;this.globalData.compSize={w:t.w,h:t.h}};function TransformElement(){}TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:false,_opMdf:false,mat:new Matrix};if(this.data.ao){this.finalTransform.mProp.autoOriented=true}if(this.data.ty!==11);},renderTransform:function(){this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame;this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame;if(this.hierarchy){var t;var e=this.finalTransform.mat;var r=0;var i=this.hierarchy.length;if(!this.finalTransform._matMdf){while(r<i){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=true;break}r+=1}}if(this.finalTransform._matMdf){t=this.finalTransform.mProp.v.props;e.cloneFromProps(t);for(r=0;r<i;r+=1){t=this.hierarchy[r].finalTransform.mProp.v.props;e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);var r=true;var i=this.comp;while(r){if(i.finalTransform){if(i.data.hasMask){e.splice(0,0,i.finalTransform)}i=i.comp}else{r=false}}var a;var s=e.length;var n;for(a=0;a<s;a+=1){n=e[a].mat.applyToPointArray(0,0,0);t=[t[0]-n[0],t[1]-n[1],0]}return t},mHelper:new Matrix};function MaskElement(t,e,r){this.data=t;this.element=e;this.globalData=r;this.storedData=[];this.masksProperties=this.data.masksProperties||[];this.maskElement=null;var i=this.globalData.defs;var a;var s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s);this.solidPath="";var n;var o=this.masksProperties;var h=0;var l=[];var f;var p;var m=createElementID();var c;var u;var d;var v;var y="clipPath";var g="clip-path";for(a=0;a<s;a+=1){if(o[a].mode!=="a"&&o[a].mode!=="n"||o[a].inv||o[a].o.k!==100||o[a].o.x){y="mask";g="mask"}if((o[a].mode==="s"||o[a].mode==="i")&&h===0){c=createNS("rect");c.setAttribute("fill","#ffffff");c.setAttribute("width",this.element.comp.data.w||0);c.setAttribute("height",this.element.comp.data.h||0);l.push(c)}else{c=null}n=createNS("path");if(o[a].mode==="n"){this.viewData[a]={op:PropertyFactory.getProp(this.element,o[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,o[a],3),elem:n,lastPath:""};i.appendChild(n)}else{h+=1;n.setAttribute("fill",o[a].mode==="s"?"#000000":"#ffffff");n.setAttribute("clip-rule","nonzero");var b;if(o[a].x.k!==0){y="mask";g="mask";v=PropertyFactory.getProp(this.element,o[a].x,0,null,this.element);b=createElementID();u=createNS("filter");u.setAttribute("id",b);d=createNS("feMorphology");d.setAttribute("operator","erode");d.setAttribute("in","SourceGraphic");d.setAttribute("radius","0");u.appendChild(d);i.appendChild(u);n.setAttribute("stroke",o[a].mode==="s"?"#000000":"#ffffff")}else{d=null;v=null}this.storedData[a]={elem:n,x:v,expan:d,lastPath:"",lastOperator:"",filterId:b,lastRadius:0};if(o[a].mode==="i"){p=l.length;var P=createNS("g");for(f=0;f<p;f+=1){P.appendChild(l[f])}var E=createNS("mask");E.setAttribute("mask-type","alpha");E.setAttribute("id",m+"_"+h);E.appendChild(n);i.appendChild(E);P.setAttribute("mask","url("+getLocationHref()+"#"+m+"_"+h+")");l.length=0;l.push(P)}else{l.push(n)}if(o[a].inv&&!this.solidPath){this.solidPath=this.createLayerSolidPath()}this.viewData[a]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,o[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,o[a],3),invRect:c};if(!this.viewData[a].prop.k){this.drawPath(o[a],this.viewData[a].prop.v,this.viewData[a])}}}this.maskElement=createNS(y);s=l.length;for(a=0;a<s;a+=1){this.maskElement.appendChild(l[a])}if(h>0){this.maskElement.setAttribute("id",m);this.element.maskedElement.setAttribute(g,"url("+getLocationHref()+"#"+m+")");i.appendChild(this.maskElement)}if(this.viewData.length){this.element.addRenderableComponent(this)}}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop};MaskElement.prototype.renderFrame=function(t){var e=this.element.finalTransform.mat;var r;var i=this.masksProperties.length;for(r=0;r<i;r+=1){if(this.viewData[r].prop._mdf||t){this.drawPath(this.masksProperties[r],this.viewData[r].prop.v,this.viewData[r])}if(this.viewData[r].op._mdf||t){this.viewData[r].elem.setAttribute("fill-opacity",this.viewData[r].op.v)}if(this.masksProperties[r].mode!=="n"){if(this.viewData[r].invRect&&(this.element.finalTransform.mProp._mdf||t)){this.viewData[r].invRect.setAttribute("transform",e.getInverseMatrix().to2dCSS())}if(this.storedData[r].x&&(this.storedData[r].x._mdf||t)){var a=this.storedData[r].expan;if(this.storedData[r].x.v<0){if(this.storedData[r].lastOperator!=="erode"){this.storedData[r].lastOperator="erode";this.storedData[r].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[r].filterId+")")}a.setAttribute("radius",-this.storedData[r].x.v)}else{if(this.storedData[r].lastOperator!=="dilate"){this.storedData[r].lastOperator="dilate";this.storedData[r].elem.setAttribute("filter",null)}this.storedData[r].elem.setAttribute("stroke-width",this.storedData[r].x.v*2)}}}}};MaskElement.prototype.getMaskelement=function(){return this.maskElement};MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";t+=" h"+this.globalData.compSize.w;t+=" v"+this.globalData.compSize.h;t+=" h-"+this.globalData.compSize.w;t+=" v-"+this.globalData.compSize.h+" ";return t};MaskElement.prototype.drawPath=function(t,e,r){var i=" M"+e.v[0][0]+","+e.v[0][1];var a;var s;s=e._length;for(a=1;a<s;a+=1){i+=" C"+e.o[a-1][0]+","+e.o[a-1][1]+" "+e.i[a][0]+","+e.i[a][1]+" "+e.v[a][0]+","+e.v[a][1]}if(e.c&&s>1){i+=" C"+e.o[a-1][0]+","+e.o[a-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]}if(r.lastPath!==i){var n="";if(r.elem){if(e.c){n=t.inv?this.solidPath+i:i}r.elem.setAttribute("d",n)}r.lastPath=i}};MaskElement.prototype.destroy=function(){this.element=null;this.globalData=null;this.maskElement=null;this.data=null;this.masksProperties=null};const filtersFactory=function(){var t={};t.createFilter=e;t.createAlphaToLuminanceFilter=r;function e(t,e){var r=createNS("filter");r.setAttribute("id",t);if(e!==true){r.setAttribute("filterUnits","objectBoundingBox");r.setAttribute("x","0%");r.setAttribute("y","0%");r.setAttribute("width","100%");r.setAttribute("height","100%")}return r}function r(){var t=createNS("feColorMatrix");t.setAttribute("type","matrix");t.setAttribute("color-interpolation-filters","sRGB");t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1");return t}return t}();const featureSupport=function(){var t={maskType:true};if(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent)){t.maskType=false}return t}();var registeredEffects={};var idPrefix="filter_result_";function SVGEffects(t){var e;var r="SourceGraphic";var i=t.data.ef?t.data.ef.length:0;var a=createElementID();var s=filtersFactory.createFilter(a,true);var n=0;this.filters=[];var o;for(e=0;e<i;e+=1){o=null;var h=t.data.ef[e].ty;if(registeredEffects[h]){var l=registeredEffects[h].effect;o=new l(s,t.effectsManager.effectElements[e],t,idPrefix+n,r);r=idPrefix+n;if(registeredEffects[h].countsAsEffect){n+=1}}if(o){this.filters.push(o)}}if(n){t.globalData.defs.appendChild(s);t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")}if(this.filters.length){t.addRenderableComponent(this)}}SVGEffects.prototype.renderFrame=function(t){var e;var r=this.filters.length;for(e=0;e<r;e+=1){this.filters[e].renderFrame(t)}};function registerEffect(t,e,r){registeredEffects[t]={effect:e,countsAsEffect:r}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g");this.transformedElement=this.layerElement;this.maskedElement=this.layerElement;this._sizeChanged=false;var t=null;var e;var r;var i;if(this.data.td){if(this.data.td==3||this.data.td==1){var a=createNS("mask");a.setAttribute("id",this.layerId);a.setAttribute("mask-type",this.data.td==3?"luminance":"alpha");a.appendChild(this.layerElement);t=a;this.globalData.defs.appendChild(a);if(!featureSupport.maskType&&this.data.td==1){a.setAttribute("mask-type","luminance");e=createElementID();r=filtersFactory.createFilter(e);this.globalData.defs.appendChild(r);r.appendChild(filtersFactory.createAlphaToLuminanceFilter());i=createNS("g");i.appendChild(this.layerElement);t=i;a.appendChild(i);i.setAttribute("filter","url("+getLocationHref()+"#"+e+")")}}else if(this.data.td==2){var s=createNS("mask");s.setAttribute("id",this.layerId);s.setAttribute("mask-type","alpha");var n=createNS("g");s.appendChild(n);e=createElementID();r=filtersFactory.createFilter(e);var o=createNS("feComponentTransfer");o.setAttribute("in","SourceGraphic");r.appendChild(o);var h=createNS("feFuncA");h.setAttribute("type","table");h.setAttribute("tableValues","1.0 0.0");o.appendChild(h);this.globalData.defs.appendChild(r);var l=createNS("rect");l.setAttribute("width",this.comp.data.w);l.setAttribute("height",this.comp.data.h);l.setAttribute("x","0");l.setAttribute("y","0");l.setAttribute("fill","#ffffff");l.setAttribute("opacity","0");n.setAttribute("filter","url("+getLocationHref()+"#"+e+")");n.appendChild(l);n.appendChild(this.layerElement);t=n;if(!featureSupport.maskType){s.setAttribute("mask-type","luminance");r.appendChild(filtersFactory.createAlphaToLuminanceFilter());i=createNS("g");n.appendChild(l);i.appendChild(this.layerElement);t=i;n.appendChild(i)}this.globalData.defs.appendChild(s)}}else if(this.data.tt){this.matteElement.appendChild(this.layerElement);t=this.matteElement;this.baseElement=this.matteElement}else{this.baseElement=this.layerElement}if(this.data.ln){this.layerElement.setAttribute("id",this.data.ln)}if(this.data.cl){this.layerElement.setAttribute("class",this.data.cl)}if(this.data.ty===0&&!this.data.hd){var f=createNS("clipPath");var p=createNS("path");p.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var m=createElementID();f.setAttribute("id",m);f.appendChild(p);this.globalData.defs.appendChild(f);if(this.checkMasks()){var c=createNS("g");c.setAttribute("clip-path","url("+getLocationHref()+"#"+m+")");c.appendChild(this.layerElement);this.transformedElement=c;if(t){t.appendChild(this.transformedElement)}else{this.baseElement=this.transformedElement}}else{this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+m+")")}}if(this.data.bm!==0){this.setBlendMode()}},renderElement:function(){if(this.finalTransform._matMdf){this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS())}if(this.finalTransform._opMdf){this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)}},destroyBaseElement:function(){this.layerElement=null;this.matteElement=null;this.maskManager.destroy()},getBaseElement:function(){if(this.data.hd){return null}return this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData);this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(t){if(!this.matteElement){return}this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[];this._isParent=false;this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=true},checkParenting:function(){if(this.data.parent!==undefined){this.comp.buildElementParenting(this,this.data.parent,[])}}};function RenderableDOMElement(){}(function(){var t={initElement:function(t,e,r){this.initFrame();this.initBaseData(t,e,r);this.initTransform(t,e,r);this.initHierarchy();this.initRenderable();this.initRendererElement();this.createContainerElements();this.createRenderableComponents();this.createContent();this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var t=this.baseElement||this.layerElement;t.style.display="none";this.hidden=true}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var t=this.baseElement||this.layerElement;t.style.display="block"}this.hidden=false;this._isFirstFrame=true}},renderFrame:function(){if(this.data.hd||this.hidden){return}this.renderTransform();this.renderRenderable();this.renderElement();this.renderInnerContent();if(this._isFirstFrame){this._isFirstFrame=false}},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=false;this.prepareRenderableFrame(t);this.prepareProperties(t,this.isInRange);this.checkTransparency()},destroy:function(){this.innerElem=null;this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(t)],RenderableDOMElement)})();function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId);this.initElement(t,e,r);this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement);IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image");this.innerElem.setAttribute("width",this.assetData.w+"px");this.innerElem.setAttribute("height",this.assetData.h+"px");this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio);this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t);this.layerElement.appendChild(this.innerElem)};IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(t,e){this.elem=t;this.pos=e}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var e;var r=this.shapeModifiers.length;for(e=0;e<r;e+=1){this.shapeModifiers[e].addShape(t)}},isShapeInAnimatedModifiers:function(t){var e=0;var r=this.shapeModifiers.length;while(e<r){if(this.shapeModifiers[e].isAnimatedWithShape(t)){return true}}return false},renderModifiers:function(){if(!this.shapeModifiers.length){return}var t;var e=this.shapes.length;for(t=0;t<e;t+=1){this.shapes[t].sh.reset()}e=this.shapeModifiers.length;var r;for(t=e-1;t>=0;t-=1){r=this.shapeModifiers[t].processShapes(this._isFirstFrame);if(r){break}}},searchProcessedElement:function(t){var e=this.processedElements;var r=0;var i=e.length;while(r<i){if(e[r].elem===t){return e[r].pos}r+=1}return 0},addProcessedElement:function(t,e){var r=this.processedElements;var i=r.length;while(i){i-=1;if(r[i].elem===t){r[i].pos=e;return}}r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t);this.prepareProperties(t,this.isInRange)}};const lineCapEnum={1:"butt",2:"round",3:"square"};const lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,r){this.caches=[];this.styles=[];this.transformers=t;this.lStr="";this.sh=r;this.lvl=e;this._isAnimated=!!r.k;var i=0;var a=t.length;while(i<a){if(t[i].mProps.dynamicProperties.length){this._isAnimated=true;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=true};function SVGStyleData(t,e){this.data=t;this.type=t.ty;this.d="";this.lvl=e;this._mdf=false;this.closed=t.hd===true;this.pElem=createNS("path");this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="";this._mdf=false};function DashProperty(t,e,r,i){this.elem=t;this.frameId=-1;this.dataProps=createSizedArray(e.length);this.renderer=r;this.k=false;this.dashStr="";this.dashArray=createTypedArray("float32",e.length?e.length-1:0);this.dashoffset=createTypedArray("float32",1);this.initDynamicPropertyContainer(i);var a;var s=e.length||0;var n;for(a=0;a<s;a+=1){n=PropertyFactory.getProp(t,e[a].v,0,0,this);this.k=n.k||this.k;this.dataProps[a]={n:e[a].n,p:n}}if(!this.k){this.getValue(true)}this._isAnimated=this.k}DashProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId===this.frameId&&!t){return}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();this._mdf=this._mdf||t;if(this._mdf){var e=0;var r=this.dataProps.length;if(this.renderer==="svg"){this.dashStr=""}for(e=0;e<r;e+=1){if(this.dataProps[e].n!=="o"){if(this.renderer==="svg"){this.dashStr+=" "+this.dataProps[e].p.v}else{this.dashArray[e]=this.dataProps[e].p.v}}else{this.dashoffset[0]=this.dataProps[e].p.v}}}};extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t);this.getValue=this.iterateDynamicProperties;this.o=PropertyFactory.getProp(t,e.o,0,.01,this);this.w=PropertyFactory.getProp(t,e.w,0,null,this);this.d=new DashProperty(t,e.d||{},"svg",this);this.c=PropertyFactory.getProp(t,e.c,1,255,this);this.style=r;this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t);this.getValue=this.iterateDynamicProperties;this.o=PropertyFactory.getProp(t,e.o,0,.01,this);this.c=PropertyFactory.getProp(t,e.c,1,255,this);this.style=r}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t);this.getValue=this.iterateDynamicProperties;this.style=r}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(t,e,r){this.data=e;this.c=createTypedArray("uint8c",e.p*4);var i=e.k.k[0].s?e.k.k[0].s.length-e.p*4:e.k.k.length-e.p*4;this.o=createTypedArray("float32",i);this._cmdf=false;this._omdf=false;this._collapsable=this.checkCollapsable();this._hasOpacity=i;this.initDynamicPropertyContainer(r);this.prop=PropertyFactory.getProp(t,e.k,1,null,this);this.k=this.prop.k;this.getValue(true)}GradientProperty.prototype.comparePoints=function(t,e){var r=0;var i=this.o.length/2;var a;while(r<i){a=Math.abs(t[r*4]-t[e*4+r*2]);if(a>.01){return false}r+=1}return true};GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4){return false}if(this.data.k.k[0].s){var t=0;var e=this.data.k.k.length;while(t<e){if(!this.comparePoints(this.data.k.k[t].s,this.data.p)){return false}t+=1}}else if(!this.comparePoints(this.data.k.k,this.data.p)){return false}return true};GradientProperty.prototype.getValue=function(t){this.prop.getValue();this._mdf=false;this._cmdf=false;this._omdf=false;if(this.prop._mdf||t){var e;var r=this.data.p*4;var i;var a;for(e=0;e<r;e+=1){i=e%4===0?100:255;a=Math.round(this.prop.v[e]*i);if(this.c[e]!==a){this.c[e]=a;this._cmdf=!t}}if(this.o.length){r=this.prop.v.length;for(e=this.data.p*4;e<r;e+=1){i=e%2===0?100:1;a=e%2===0?Math.round(this.prop.v[e]*100):this.prop.v[e];if(this.o[e-this.data.p*4]!==a){this.o[e-this.data.p*4]=a;this._omdf=!t}}}this._mdf=!t}};extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t);this.getValue=this.iterateDynamicProperties;this.initGradientData(t,e,r)}SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this);this.s=PropertyFactory.getProp(t,e.s,1,null,this);this.e=PropertyFactory.getProp(t,e.e,1,null,this);this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this);this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this);this.g=new GradientProperty(t,e.g,this);this.style=r;this.stops=[];this.setGradientData(r.pElem,e);this.setGradientOpacity(e,r);this._isAnimated=!!this._isAnimated};SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID();var i=createNS(e.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r);i.setAttribute("spreadMethod","pad");i.setAttribute("gradientUnits","userSpaceOnUse");var a=[];var s;var n;var o;o=e.g.p*4;for(n=0;n<o;n+=4){s=createNS("stop");i.appendChild(s);a.push(s)}t.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")");this.gf=i;this.cst=a};SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r;var i;var a;var s=createNS("mask");var n=createNS("path");s.appendChild(n);var o=createElementID();var h=createElementID();s.setAttribute("id",h);var l=createNS(t.t===1?"linearGradient":"radialGradient");l.setAttribute("id",o);l.setAttribute("spreadMethod","pad");l.setAttribute("gradientUnits","userSpaceOnUse");a=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var f=this.stops;for(i=t.g.p*4;i<a;i+=2){r=createNS("stop");r.setAttribute("stop-color","rgb(255,255,255)");l.appendChild(r);f.push(r)}n.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+o+")");if(t.ty==="gs"){n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]);n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]);if(t.lj===1){n.setAttribute("stroke-miterlimit",t.ml)}}this.of=l;this.ms=s;this.ost=f;this.maskId=h;e.msElem=n}};extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t);this.getValue=this.iterateDynamicProperties;this.w=PropertyFactory.getProp(t,e.w,0,null,this);this.d=new DashProperty(t,e.d||{},"svg",this);this.initGradientData(t,e,r);this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[];this.prevViewData=[];this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r};this.elements=[];this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}const buildShapeString=function(t,e,r,i){if(e===0){return""}var a=t.o;var s=t.i;var n=t.v;var o;var h=" M"+i.applyToPointStringified(n[0][0],n[0][1]);for(o=1;o<e;o+=1){h+=" C"+i.applyToPointStringified(a[o-1][0],a[o-1][1])+" "+i.applyToPointStringified(s[o][0],s[o][1])+" "+i.applyToPointStringified(n[o][0],n[o][1])}if(r&&e){h+=" C"+i.applyToPointStringified(a[o-1][0],a[o-1][1])+" "+i.applyToPointStringified(s[0][0],s[0][1])+" "+i.applyToPointStringified(n[0][0],n[0][1]);h+="z"}return h};const SVGElementsRenderer=function(){var t=new Matrix;var e=new Matrix;var r={createRenderFunction:i};function i(t){switch(t.ty){case"fl":return o;case"gf":return l;case"gs":return h;case"st":return f;case"sh":case"el":case"rc":case"sr":return n;case"tr":return a;case"no":return s;default:return null}}function a(t,e,r){if(r||e.transform.op._mdf){e.transform.container.setAttribute("opacity",e.transform.op.v)}if(r||e.transform.mProps._mdf){e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}}function s(){}function n(r,i,a){var s;var n;var o;var h;var l;var f;var p=i.styles.length;var m=i.lvl;var c;var u;var d;var v;var y;for(f=0;f<p;f+=1){h=i.sh._mdf||a;if(i.styles[f].lvl<m){u=e.reset();v=m-i.styles[f].lvl;y=i.transformers.length-1;while(!h&&v>0){h=i.transformers[y].mProps._mdf||h;v-=1;y-=1}if(h){v=m-i.styles[f].lvl;y=i.transformers.length-1;while(v>0){d=i.transformers[y].mProps.v.props;u.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]);v-=1;y-=1}}}else{u=t}c=i.sh.paths;n=c._length;if(h){o="";for(s=0;s<n;s+=1){l=c.shapes[s];if(l&&l._length){o+=buildShapeString(l,l._length,l.c,u)}}i.caches[f]=o}else{o=i.caches[f]}i.styles[f].d+=r.hd===true?"":o;i.styles[f]._mdf=h||i.styles[f]._mdf}}function o(t,e,r){var i=e.style;if(e.c._mdf||r){i.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")")}if(e.o._mdf||r){i.pElem.setAttribute("fill-opacity",e.o.v)}}function h(t,e,r){l(t,e,r);f(t,e,r)}function l(t,e,r){var i=e.gf;var a=e.g._hasOpacity;var s=e.s.v;var n=e.e.v;if(e.o._mdf||r){var o=t.ty==="gf"?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(o,e.o.v)}if(e.s._mdf||r){var h=t.t===1?"x1":"cx";var l=h==="x1"?"y1":"cy";i.setAttribute(h,s[0]);i.setAttribute(l,s[1]);if(a&&!e.g._collapsable){e.of.setAttribute(h,s[0]);e.of.setAttribute(l,s[1])}}var f;var p;var m;var c;if(e.g._cmdf||r){f=e.cst;var u=e.g.c;m=f.length;for(p=0;p<m;p+=1){c=f[p];c.setAttribute("offset",u[p*4]+"%");c.setAttribute("stop-color","rgb("+u[p*4+1]+","+u[p*4+2]+","+u[p*4+3]+")")}}if(a&&(e.g._omdf||r)){var d=e.g.o;if(e.g._collapsable){f=e.cst}else{f=e.ost}m=f.length;for(p=0;p<m;p+=1){c=f[p];if(!e.g._collapsable){c.setAttribute("offset",d[p*2]+"%")}c.setAttribute("stop-opacity",d[p*2+1])}}if(t.t===1){if(e.e._mdf||r){i.setAttribute("x2",n[0]);i.setAttribute("y2",n[1]);if(a&&!e.g._collapsable){e.of.setAttribute("x2",n[0]);e.of.setAttribute("y2",n[1])}}}else{var v;if(e.s._mdf||e.e._mdf||r){v=Math.sqrt(Math.pow(s[0]-n[0],2)+Math.pow(s[1]-n[1],2));i.setAttribute("r",v);if(a&&!e.g._collapsable){e.of.setAttribute("r",v)}}if(e.e._mdf||e.h._mdf||e.a._mdf||r){if(!v){v=Math.sqrt(Math.pow(s[0]-n[0],2)+Math.pow(s[1]-n[1],2))}var y=Math.atan2(n[1]-s[1],n[0]-s[0]);var g=e.h.v;if(g>=1){g=.99}else if(g<=-1){g=-.99}var b=v*g;var P=Math.cos(y+e.a.v)*b+s[0];var E=Math.sin(y+e.a.v)*b+s[1];i.setAttribute("fx",P);i.setAttribute("fy",E);if(a&&!e.g._collapsable){e.of.setAttribute("fx",P);e.of.setAttribute("fy",E)}}}}function f(t,e,r){var i=e.style;var a=e.d;if(a&&(a._mdf||r)&&a.dashStr){i.pElem.setAttribute("stroke-dasharray",a.dashStr);i.pElem.setAttribute("stroke-dashoffset",a.dashoffset[0])}if(e.c&&(e.c._mdf||r)){i.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")")}if(e.o._mdf||r){i.pElem.setAttribute("stroke-opacity",e.o.v)}if(e.w._mdf||r){i.pElem.setAttribute("stroke-width",e.w.v);if(i.msElem){i.msElem.setAttribute("stroke-width",e.w.v)}}}return r}();function SVGShapeElement(t,e,r){this.shapes=[];this.shapesData=t.shapes;this.stylesList=[];this.shapeModifiers=[];this.itemsData=[];this.processedElements=[];this.animatedContents=[];this.initElement(t,e,r);this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement);SVGShapeElement.prototype.initSecondaryElement=function(){};SVGShapeElement.prototype.identityMatrix=new Matrix;SVGShapeElement.prototype.buildExpressionInterface=function(){};SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],true);this.filterUniqueShapes()};SVGShapeElement.prototype.filterUniqueShapes=function(){var t;var e=this.shapes.length;var r;var i;var a=this.stylesList.length;var s;var n=[];var o=false;for(i=0;i<a;i+=1){s=this.stylesList[i];o=false;n.length=0;for(t=0;t<e;t+=1){r=this.shapes[t];if(r.styles.indexOf(s)!==-1){n.push(r);o=r._isAnimated||o}}if(n.length>1&&o){this.setShapesAsAnimated(n)}}};SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e;var r=t.length;for(e=0;e<r;e+=1){t[e].setAsAnimated()}};SVGShapeElement.prototype.createStyleElement=function(t,e){var r;var i=new SVGStyleData(t,e);var a=i.pElem;if(t.ty==="st"){r=new SVGStrokeStyleData(this,t,i)}else if(t.ty==="fl"){r=new SVGFillStyleData(this,t,i)}else if(t.ty==="gf"||t.ty==="gs"){var s=t.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new s(this,t,i);this.globalData.defs.appendChild(r.gf);if(r.maskId){this.globalData.defs.appendChild(r.ms);this.globalData.defs.appendChild(r.of);a.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")")}}else if(t.ty==="no"){r=new SVGNoStyleData(this,t,i)}if(t.ty==="st"||t.ty==="gs"){a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]);a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]);a.setAttribute("fill-opacity","0");if(t.lj===1){a.setAttribute("stroke-miterlimit",t.ml)}}if(t.r===2){a.setAttribute("fill-rule","evenodd")}if(t.ln){a.setAttribute("id",t.ln)}if(t.cl){a.setAttribute("class",t.cl)}if(t.bm){a.style["mix-blend-mode"]=getBlendMode(t.bm)}this.stylesList.push(i);this.addToAnimatedContents(t,r);return r};SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;if(t.ln){e.gr.setAttribute("id",t.ln)}if(t.cl){e.gr.setAttribute("class",t.cl)}if(t.bm){e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)}return e};SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this);var i=new SVGTransformData(r,r.o,e);this.addToAnimatedContents(t,i);return i};SVGShapeElement.prototype.createShapeElement=function(t,e,r){var i=4;if(t.ty==="rc"){i=5}else if(t.ty==="el"){i=6}else if(t.ty==="sr"){i=7}var a=ShapePropertyFactory.getShapeProp(this,t,i,this);var s=new SVGShapeData(e,r,a);this.shapes.push(s);this.addShapeToModifiers(s);this.addToAnimatedContents(t,s);return s};SVGShapeElement.prototype.addToAnimatedContents=function(t,e){var r=0;var i=this.animatedContents.length;while(r<i){if(this.animatedContents[r].element===e){return}r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})};SVGShapeElement.prototype.setElementStyles=function(t){var e=t.styles;var r;var i=this.stylesList.length;for(r=0;r<i;r+=1){if(!this.stylesList[r].closed){e.push(this.stylesList[r])}}};SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=true;var t;var e=this.itemsData.length;for(t=0;t<e;t+=1){this.prevViewData[t]=this.itemsData[t]}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],true);this.filterUniqueShapes();e=this.dynamicProperties.length;for(t=0;t<e;t+=1){this.dynamicProperties[t].getValue()}this.renderModifiers()};SVGShapeElement.prototype.searchShapes=function(t,e,r,i,a,s,n){var o=[].concat(s);var h;var l=t.length-1;var f;var p;var m=[];var c=[];var u;var d;var v;for(h=l;h>=0;h-=1){v=this.searchProcessedElement(t[h]);if(!v){t[h]._render=n}else{e[h]=r[v-1]}if(t[h].ty==="fl"||t[h].ty==="st"||t[h].ty==="gf"||t[h].ty==="gs"||t[h].ty==="no"){if(!v){e[h]=this.createStyleElement(t[h],a)}else{e[h].style.closed=false}if(t[h]._render){if(e[h].style.pElem.parentNode!==i){i.appendChild(e[h].style.pElem)}}m.push(e[h].style)}else if(t[h].ty==="gr"){if(!v){e[h]=this.createGroupElement(t[h])}else{p=e[h].it.length;for(f=0;f<p;f+=1){e[h].prevViewData[f]=e[h].it[f]}}this.searchShapes(t[h].it,e[h].it,e[h].prevViewData,e[h].gr,a+1,o,n);if(t[h]._render){if(e[h].gr.parentNode!==i){i.appendChild(e[h].gr)}}}else if(t[h].ty==="tr"){if(!v){e[h]=this.createTransformElement(t[h],i)}u=e[h].transform;o.push(u)}else if(t[h].ty==="sh"||t[h].ty==="rc"||t[h].ty==="el"||t[h].ty==="sr"){if(!v){e[h]=this.createShapeElement(t[h],o,a)}this.setElementStyles(e[h])}else if(t[h].ty==="tm"||t[h].ty==="rd"||t[h].ty==="ms"||t[h].ty==="pb"){if(!v){d=ShapeModifiers.getModifier(t[h].ty);d.init(this,t[h]);e[h]=d;this.shapeModifiers.push(d)}else{d=e[h];d.closed=false}c.push(d)}else if(t[h].ty==="rp"){if(!v){d=ShapeModifiers.getModifier(t[h].ty);e[h]=d;d.init(this,t,h,e);this.shapeModifiers.push(d);n=false}else{d=e[h];d.closed=true}c.push(d)}this.addProcessedElement(t[h],h+1)}l=m.length;for(h=0;h<l;h+=1){m[h].closed=true}l=c.length;for(h=0;h<l;h+=1){c[h].closed=true}};SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t;var e=this.stylesList.length;for(t=0;t<e;t+=1){this.stylesList[t].reset()}this.renderShape();for(t=0;t<e;t+=1){if(this.stylesList[t]._mdf||this._isFirstFrame){if(this.stylesList[t].msElem){this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d);this.stylesList[t].d="M0 0"+this.stylesList[t].d}this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0")}}};SVGShapeElement.prototype.renderShape=function(){var t;var e=this.animatedContents.length;var r;for(t=0;t<e;t+=1){r=this.animatedContents[t];if((this._isFirstFrame||r.element._isAnimated)&&r.data!==true){r.fn(r.data,r.element,this._isFirstFrame)}}};SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement();this.shapesData=null;this.itemsData=null};function LetterProps(t,e,r,i,a,s){this.o=t;this.sw=e;this.sc=r;this.fc=i;this.m=a;this.p=s;this._mdf={o:true,sw:!!e,sc:!!r,fc:!!i,m:true,p:true}}LetterProps.prototype.update=function(t,e,r,i,a,s){this._mdf.o=false;this._mdf.sw=false;this._mdf.sc=false;this._mdf.fc=false;this._mdf.m=false;this._mdf.p=false;var n=false;if(this.o!==t){this.o=t;this._mdf.o=true;n=true}if(this.sw!==e){this.sw=e;this._mdf.sw=true;n=true}if(this.sc!==r){this.sc=r;this._mdf.sc=true;n=true}if(this.fc!==i){this.fc=i;this._mdf.fc=true;n=true}if(this.m!==a){this.m=a;this._mdf.m=true;n=true}if(s.length&&(this.p[0]!==s[0]||this.p[1]!==s[1]||this.p[4]!==s[4]||this.p[5]!==s[5]||this.p[12]!==s[12]||this.p[13]!==s[13])){this.p=s;this._mdf.p=true;n=true}return n};function TextProperty(t,e){this._frameId=initialDefaultFrame;this.pv="";this.v="";this.kf=false;this._isFirstFrame=true;this._mdf=false;this.data=e;this.elem=t;this.comp=this.elem.comp;this.keysIndex=0;this.canResize=false;this.minimumFontSize=1;this.effectsSequence=[];this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:false,strokeColorAnim:false,strokeWidthAnim:false,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:false};this.copyData(this.currentData,this.data.d.k[0].s);if(!this.searchProperty()){this.completeTextData(this.currentData)}}TextProperty.prototype.defaultBoxWidth=[0,0];TextProperty.prototype.copyData=function(t,e){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){t[r]=e[r]}}return t};TextProperty.prototype.setCurrentData=function(t){if(!t.__complete){this.completeTextData(t)}this.currentData=t;this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth;this._mdf=true};TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()};TextProperty.prototype.searchKeyframes=function(){this.kf=this.data.d.k.length>1;if(this.kf){this.addEffect(this.getKeyframeValue.bind(this))}return this.kf};TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t);this.elem.addDynamicProperty(this)};TextProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t){return}this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData;var r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=true;this._mdf=false;var i;var a=this.effectsSequence.length;var s=t||this.data.d.k[this.keysIndex].s;for(i=0;i<a;i+=1){if(r!==this.keysIndex){s=this.effectsSequence[i](s,s.t)}else{s=this.effectsSequence[i](this.currentData,s.t)}}if(e!==s){this.setCurrentData(s)}this.v=this.currentData;this.pv=this.v;this.lock=false;this.frameId=this.elem.globalData.frameId};TextProperty.prototype.getKeyframeValue=function(){var t=this.data.d.k;var e=this.elem.comp.renderedFrame;var r=0;var i=t.length;while(r<=i-1){if(r===i-1||t[r+1].t>e){break}r+=1}if(this.keysIndex!==r){this.keysIndex=r}return this.data.d.k[this.keysIndex].s};TextProperty.prototype.buildFinalText=function(t){var e=[];var r=0;var i=t.length;var a;var s;var n=false;while(r<i){a=t.charCodeAt(r);if(FontManager.isCombinedCharacter(a)){e[e.length-1]+=t.charAt(r)}else if(a>=55296&&a<=56319){s=t.charCodeAt(r+1);if(s>=56320&&s<=57343){if(n||FontManager.isModifier(a,s)){e[e.length-1]+=t.substr(r,2);n=false}else{e.push(t.substr(r,2))}r+=1}else{e.push(t.charAt(r))}}else if(a>56319){s=t.charCodeAt(r+1);if(FontManager.isZeroWidthJoiner(a,s)){n=true;e[e.length-1]+=t.substr(r,2);r+=1}else{e.push(t.charAt(r))}}else if(FontManager.isZeroWidthJoiner(a)){e[e.length-1]+=t.charAt(r);n=true}else{e.push(t.charAt(r))}r+=1}return e};TextProperty.prototype.completeTextData=function(t){t.__complete=true;var e=this.elem.globalData.fontManager;var r=this.data;var i=[];var a;var s;var n;var o=0;var h;var l=r.m.g;var f=0;var p=0;var m=0;var c=[];var u=0;var d=0;var v;var y;var g=e.getFontByName(t.f);var b;var P=0;var E=getFontProperties(g);t.fWeight=E.weight;t.fStyle=E.style;t.finalSize=t.s;t.finalText=this.buildFinalText(t.t);s=t.finalText.length;t.finalLineHeight=t.lh;var x=t.tr/1e3*t.finalSize;var S;if(t.sz){var C=true;var A=t.sz[0];var _=t.sz[1];var k;var T;while(C){T=this.buildFinalText(t.t);k=0;u=0;s=T.length;x=t.tr/1e3*t.finalSize;var D=-1;for(a=0;a<s;a+=1){S=T[a].charCodeAt(0);n=false;if(T[a]===" "){D=a}else if(S===13||S===3){u=0;n=true;k+=t.finalLineHeight||t.finalSize*1.2}if(e.chars){b=e.getCharData(T[a],g.fStyle,g.fFamily);P=n?0:b.w*t.finalSize/100}else{P=e.measureText(T[a],t.f,t.finalSize)}if(u+P>A&&T[a]!==" "){if(D===-1){s+=1}else{a=D}k+=t.finalLineHeight||t.finalSize*1.2;T.splice(a,D===a?1:0,"\r");D=-1;u=0}else{u+=P;u+=x}}k+=g.ascent*t.finalSize/100;if(this.canResize&&t.finalSize>this.minimumFontSize&&_<k){t.finalSize-=1;t.finalLineHeight=t.finalSize*t.lh/t.s}else{t.finalText=T;s=t.finalText.length;C=false}}}u=-x;P=0;var M=0;var w;for(a=0;a<s;a+=1){n=false;w=t.finalText[a];S=w.charCodeAt(0);if(S===13||S===3){M=0;c.push(u);d=u>d?u:d;u=-2*x;h="";n=true;m+=1}else{h=w}if(e.chars){b=e.getCharData(w,g.fStyle,e.getFontByName(t.f).fFamily);P=n?0:b.w*t.finalSize/100}else{P=e.measureText(h,t.f,t.finalSize)}if(w===" "){M+=P+x}else{u+=P+x+M;M=0}i.push({l:P,an:P,add:f,n:n,anIndexes:[],val:h,line:m,animatorJustifyOffset:0});if(l==2){f+=P;if(h===""||h===" "||a===s-1){if(h===""||h===" "){f-=P}while(p<=a){i[p].an=f;i[p].ind=o;i[p].extra=P;p+=1}o+=1;f=0}}else if(l==3){f+=P;if(h===""||a===s-1){if(h===""){f-=P}while(p<=a){i[p].an=f;i[p].ind=o;i[p].extra=P;p+=1}f=0;o+=1}}else{i[o].ind=o;i[o].extra=0;o+=1}}t.l=i;d=u>d?u:d;c.push(u);if(t.sz){t.boxWidth=t.sz[0];t.justifyOffset=0}else{t.boxWidth=d;switch(t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}}t.lineWidths=c;var F=r.a;var I;var B;y=F.length;var V;var R;var L=[];for(v=0;v<y;v+=1){I=F[v];if(I.a.sc){t.strokeColorAnim=true}if(I.a.sw){t.strokeWidthAnim=true}if(I.a.fc||I.a.fh||I.a.fs||I.a.fb){t.fillColorAnim=true}R=0;V=I.s.b;for(a=0;a<s;a+=1){B=i[a];B.anIndexes[v]=R;if(V==1&&B.val!==""||V==2&&B.val!==""&&B.val!==" "||V==3&&(B.n||B.val==" "||a==s-1)||V==4&&(B.n||a==s-1)){if(I.s.rn===1){L.push(R)}R+=1}}r.a[v].s.totalChars=R;var G=-1;var z;if(I.s.rn===1){for(a=0;a<s;a+=1){B=i[a];if(G!=B.anIndexes[v]){G=B.anIndexes[v];z=L.splice(Math.floor(Math.random()*L.length),1)[0]}B.anIndexes[v]=z}}}t.yOffset=t.finalLineHeight||t.finalSize*1.2;t.ls=t.ls||0;t.ascent=g.ascent*t.finalSize/100};TextProperty.prototype.updateDocumentData=function(t,e){e=e===undefined?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t);this.data.d.k[e].s=r;this.recalculate(e);this.elem.addDynamicProperty(this)};TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=false;this.keysIndex=0;this._isFirstFrame=true;this.getValue(e)};TextProperty.prototype.canResizeFont=function(t){this.canResize=t;this.recalculate(this.keysIndex);this.elem.addDynamicProperty(this)};TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1;this.recalculate(this.keysIndex);this.elem.addDynamicProperty(this)};const TextSelectorProp=function(){var t=Math.max;var e=Math.min;var r=Math.floor;function i(t,e){this._currentTextLength=-1;this.k=false;this.data=e;this.elem=t;this.comp=t.comp;this.finalS=0;this.finalE=0;this.initDynamicPropertyContainer(t);this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this);if("e"in e){this.e=PropertyFactory.getProp(t,e.e,0,0,this)}else{this.e={v:100}}this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this);this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this);this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this);this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this);this.a=PropertyFactory.getProp(t,e.a,0,.01,this);if(!this.dynamicProperties.length){this.getValue()}}i.prototype={getMult:function(i){if(this._currentTextLength!==this.elem.textProperty.currentData.l.length){this.getValue()}var a=0;var s=0;var n=1;var o=1;if(this.ne.v>0){a=this.ne.v/100}else{s=-this.ne.v/100}if(this.xe.v>0){n=1-this.xe.v/100}else{o=1+this.xe.v/100}var h=BezierFactory.getBezierEasing(a,s,n,o).get;var l=0;var f=this.finalS;var p=this.finalE;var m=this.data.sh;if(m===2){if(p===f){l=i>=p?1:0}else{l=t(0,e(.5/(p-f)+(i-f)/(p-f),1))}l=h(l)}else if(m===3){if(p===f){l=i>=p?0:1}else{l=1-t(0,e(.5/(p-f)+(i-f)/(p-f),1))}l=h(l)}else if(m===4){if(p===f){l=0}else{l=t(0,e(.5/(p-f)+(i-f)/(p-f),1));if(l<.5){l*=2}else{l=1-2*(l-.5)}}l=h(l)}else if(m===5){if(p===f){l=0}else{var c=p-f;i=e(t(0,i+.5-f),p-f);var u=-c/2+i;var d=c/2;l=Math.sqrt(1-u*u/(d*d))}l=h(l)}else if(m===6){if(p===f){l=0}else{i=e(t(0,i+.5-f),p-f);l=(1+Math.cos(Math.PI+Math.PI*2*i/(p-f)))/2}l=h(l)}else{if(i>=r(f)){if(i-f<0){l=t(0,e(e(p,1)-(f-i),1))}else{l=t(0,e(p-i,1))}}l=h(l)}if(this.sm.v!==100){var v=this.sm.v*.01;if(v===0){v=1e-8}var y=.5-v*.5;if(l<y){l=0}else{l=(l-y)/v;if(l>1){l=1}}}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties();this._mdf=t||this._mdf;this._currentTextLength=this.elem.textProperty.currentData.l.length||0;if(t&&this.data.r===2){this.e.v=this._currentTextLength}var e=this.data.r===2?1:100/this.data.totalChars;var r=this.o.v/e;var i=this.s.v/e+r;var a=this.e.v/e+r;if(i>a){var s=i;i=a;a=s}this.finalS=i;this.finalE=a}};extendPrototype([DynamicPropertyContainer],i);function a(t,e,r){return new i(t,e,r)}return{getTextSelectorProp:a}}();function TextAnimatorDataProperty(t,e,r){var i={propType:false};var a=PropertyFactory.getProp;var s=e.a;this.a={r:s.r?a(t,s.r,0,degToRads,r):i,rx:s.rx?a(t,s.rx,0,degToRads,r):i,ry:s.ry?a(t,s.ry,0,degToRads,r):i,sk:s.sk?a(t,s.sk,0,degToRads,r):i,sa:s.sa?a(t,s.sa,0,degToRads,r):i,s:s.s?a(t,s.s,1,.01,r):i,a:s.a?a(t,s.a,1,0,r):i,o:s.o?a(t,s.o,0,.01,r):i,p:s.p?a(t,s.p,1,0,r):i,sw:s.sw?a(t,s.sw,0,0,r):i,sc:s.sc?a(t,s.sc,1,0,r):i,fc:s.fc?a(t,s.fc,1,0,r):i,fh:s.fh?a(t,s.fh,0,0,r):i,fs:s.fs?a(t,s.fs,0,.01,r):i,fb:s.fb?a(t,s.fb,0,.01,r):i,t:s.t?a(t,s.t,0,0,r):i};this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r);this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=true;this._hasMaskedPath=false;this._frameId=-1;this._textData=t;this._renderType=e;this._elem=r;this._animatorsData=createSizedArray(this._textData.a.length);this._pathData={};this._moreOptions={alignment:{}};this.renderedLetters=[];this.lettersChangedFlag=false;this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var t;var e=this._textData.a.length;var r;var i=PropertyFactory.getProp;for(t=0;t<e;t+=1){r=this._textData.a[t];this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,r,this)}if(this._textData.p&&"m"in this._textData.p){this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)};this._hasMaskedPath=true}else{this._hasMaskedPath=false}this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)};TextAnimatorProperty.prototype.getMeasures=function(t,e){this.lettersChangedFlag=e;if(!this._mdf&&!this._isFirstFrame&&!e&&(!this._hasMaskedPath||!this._pathData.m._mdf)){return}this._isFirstFrame=false;var r=this._moreOptions.alignment.v;var i=this._animatorsData;var a=this._textData;var s=this.mHelper;var n=this._renderType;var o=this.renderedLetters.length;var h;var l;var f;var p;var m=t.l;var c;var u;var d;var v;var y;var g;var b;var P;var E;var x;var S;var C;var A;var _;var k;if(this._hasMaskedPath){k=this._pathData.m;if(!this._pathData.n||this._pathData._mdf){var T=k.v;if(this._pathData.r.v){T=T.reverse()}c={tLength:0,segments:[]};p=T._length-1;var D;C=0;for(f=0;f<p;f+=1){D=bez.buildBezierData(T.v[f],T.v[f+1],[T.o[f][0]-T.v[f][0],T.o[f][1]-T.v[f][1]],[T.i[f+1][0]-T.v[f+1][0],T.i[f+1][1]-T.v[f+1][1]]);c.tLength+=D.segmentLength;c.segments.push(D);C+=D.segmentLength}f=p;if(k.v.c){D=bez.buildBezierData(T.v[f],T.v[0],[T.o[f][0]-T.v[f][0],T.o[f][1]-T.v[f][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]);c.tLength+=D.segmentLength;c.segments.push(D);C+=D.segmentLength}this._pathData.pi=c}c=this._pathData.pi;u=this._pathData.f.v;b=0;g=1;v=0;y=true;x=c.segments;if(u<0&&k.v.c){if(c.tLength<Math.abs(u)){u=-Math.abs(u)%c.tLength}b=x.length-1;E=x[b].points;g=E.length-1;while(u<0){u+=E[g].partialLength;g-=1;if(g<0){b-=1;E=x[b].points;g=E.length-1}}}E=x[b].points;P=E[g-1];d=E[g];S=d.partialLength}p=m.length;h=0;l=0;var M=t.finalSize*1.2*.714;var w=true;var F;var I;var B;var V;var R;V=i.length;var L;var G=-1;var z;var N;var O;var H=u;var j=b;var q=g;var W=-1;var Y;var X;var $;var K;var J;var Z;var U;var Q;var tt="";var et=this.defaultPropsArray;var rt;if(t.j===2||t.j===1){var it=0;var at=0;var st=t.j===2?-.5:-1;var nt=0;var ot=true;for(f=0;f<p;f+=1){if(m[f].n){if(it){it+=at}while(nt<f){m[nt].animatorJustifyOffset=it;nt+=1}it=0;ot=true}else{for(B=0;B<V;B+=1){F=i[B].a;if(F.t.propType){if(ot&&t.j===2){at+=F.t.v*st}I=i[B].s;L=I.getMult(m[f].anIndexes[B],a.a[B].s.totalChars);if(L.length){it+=F.t.v*L[0]*st}else{it+=F.t.v*L*st}}}ot=false}}if(it){it+=at}while(nt<f){m[nt].animatorJustifyOffset=it;nt+=1}}for(f=0;f<p;f+=1){s.reset();Y=1;if(m[f].n){h=0;l+=t.yOffset;l+=w?1:0;u=H;w=false;if(this._hasMaskedPath){b=j;g=q;E=x[b].points;P=E[g-1];d=E[g];S=d.partialLength;v=0}tt="";Q="";Z="";rt="";et=this.defaultPropsArray}else{if(this._hasMaskedPath){if(W!==m[f].line){switch(t.j){case 1:u+=C-t.lineWidths[m[f].line];break;case 2:u+=(C-t.lineWidths[m[f].line])/2;break;default:break}W=m[f].line}if(G!==m[f].ind){if(m[G]){u+=m[G].extra}u+=m[f].an/2;G=m[f].ind}u+=r[0]*m[f].an*.005;var ht=0;for(B=0;B<V;B+=1){F=i[B].a;if(F.p.propType){I=i[B].s;L=I.getMult(m[f].anIndexes[B],a.a[B].s.totalChars);if(L.length){ht+=F.p.v[0]*L[0]}else{ht+=F.p.v[0]*L}}if(F.a.propType){I=i[B].s;L=I.getMult(m[f].anIndexes[B],a.a[B].s.totalChars);if(L.length){ht+=F.a.v[0]*L[0]}else{ht+=F.a.v[0]*L}}}y=true;if(this._pathData.a.v){u=m[0].an*.5+(C-this._pathData.f.v-m[0].an*.5-m[m.length-1].an*.5)*G/(p-1);u+=this._pathData.f.v}while(y){if(v+S>=u+ht||!E){A=(u+ht-v)/d.partialLength;N=P.point[0]+(d.point[0]-P.point[0])*A;O=P.point[1]+(d.point[1]-P.point[1])*A;s.translate(-r[0]*m[f].an*.005,-(r[1]*M)*.01);y=false}else if(E){v+=d.partialLength;g+=1;if(g>=E.length){g=0;b+=1;if(!x[b]){if(k.v.c){g=0;b=0;E=x[b].points}else{v-=d.partialLength;E=null}}else{E=x[b].points}}if(E){P=d;d=E[g];S=d.partialLength}}}z=m[f].an/2-m[f].add;s.translate(-z,0,0)}else{z=m[f].an/2-m[f].add;s.translate(-z,0,0);s.translate(-r[0]*m[f].an*.005,-r[1]*M*.01,0)}for(B=0;B<V;B+=1){F=i[B].a;if(F.t.propType){I=i[B].s;L=I.getMult(m[f].anIndexes[B],a.a[B].s.totalChars);if(h!==0||t.j!==0){if(this._hasMaskedPath){if(L.length){u+=F.t.v*L[0]}else{u+=F.t.v*L}}else if(L.length){h+=F.t.v*L[0]}else{h+=F.t.v*L}}}}if(t.strokeWidthAnim){$=t.sw||0}if(t.strokeColorAnim){if(t.sc){X=[t.sc[0],t.sc[1],t.sc[2]]}else{X=[0,0,0]}}if(t.fillColorAnim&&t.fc){K=[t.fc[0],t.fc[1],t.fc[2]]}for(B=0;B<V;B+=1){F=i[B].a;if(F.a.propType){I=i[B].s;L=I.getMult(m[f].anIndexes[B],a.a[B].s.totalChars);if(L.length){s.translate(-F.a.v[0]*L[0],-F.a.v[1]*L[1],F.a.v[2]*L[2])}else{s.translate(-F.a.v[0]*L,-F.a.v[1]*L,F.a.v[2]*L)}}}for(B=0;B<V;B+=1){F=i[B].a;if(F.s.propType){I=i[B].s;L=I.getMult(m[f].anIndexes[B],a.a[B].s.totalChars);if(L.length){s.scale(1+(F.s.v[0]-1)*L[0],1+(F.s.v[1]-1)*L[1],1)}else{s.scale(1+(F.s.v[0]-1)*L,1+(F.s.v[1]-1)*L,1)}}}for(B=0;B<V;B+=1){F=i[B].a;I=i[B].s;L=I.getMult(m[f].anIndexes[B],a.a[B].s.totalChars);if(F.sk.propType){if(L.length){s.skewFromAxis(-F.sk.v*L[0],F.sa.v*L[1])}else{s.skewFromAxis(-F.sk.v*L,F.sa.v*L)}}if(F.r.propType){if(L.length){s.rotateZ(-F.r.v*L[2])}else{s.rotateZ(-F.r.v*L)}}if(F.ry.propType){if(L.length){s.rotateY(F.ry.v*L[1])}else{s.rotateY(F.ry.v*L)}}if(F.rx.propType){if(L.length){s.rotateX(F.rx.v*L[0])}else{s.rotateX(F.rx.v*L)}}if(F.o.propType){if(L.length){Y+=(F.o.v*L[0]-Y)*L[0]}else{Y+=(F.o.v*L-Y)*L}}if(t.strokeWidthAnim&&F.sw.propType){if(L.length){$+=F.sw.v*L[0]}else{$+=F.sw.v*L}}if(t.strokeColorAnim&&F.sc.propType){for(J=0;J<3;J+=1){if(L.length){X[J]+=(F.sc.v[J]-X[J])*L[0]}else{X[J]+=(F.sc.v[J]-X[J])*L}}}if(t.fillColorAnim&&t.fc){if(F.fc.propType){for(J=0;J<3;J+=1){if(L.length){K[J]+=(F.fc.v[J]-K[J])*L[0]}else{K[J]+=(F.fc.v[J]-K[J])*L}}}if(F.fh.propType){if(L.length){K=addHueToRGB(K,F.fh.v*L[0])}else{K=addHueToRGB(K,F.fh.v*L)}}if(F.fs.propType){if(L.length){K=addSaturationToRGB(K,F.fs.v*L[0])}else{K=addSaturationToRGB(K,F.fs.v*L)}}if(F.fb.propType){if(L.length){K=addBrightnessToRGB(K,F.fb.v*L[0])}else{K=addBrightnessToRGB(K,F.fb.v*L)}}}}for(B=0;B<V;B+=1){F=i[B].a;if(F.p.propType){I=i[B].s;L=I.getMult(m[f].anIndexes[B],a.a[B].s.totalChars);if(this._hasMaskedPath){if(L.length){s.translate(0,F.p.v[1]*L[0],-F.p.v[2]*L[1])}else{s.translate(0,F.p.v[1]*L,-F.p.v[2]*L)}}else if(L.length){s.translate(F.p.v[0]*L[0],F.p.v[1]*L[1],-F.p.v[2]*L[2])}else{s.translate(F.p.v[0]*L,F.p.v[1]*L,-F.p.v[2]*L)}}}if(t.strokeWidthAnim){Z=$<0?0:$}if(t.strokeColorAnim){U="rgb("+Math.round(X[0]*255)+","+Math.round(X[1]*255)+","+Math.round(X[2]*255)+")"}if(t.fillColorAnim&&t.fc){Q="rgb("+Math.round(K[0]*255)+","+Math.round(K[1]*255)+","+Math.round(K[2]*255)+")"}if(this._hasMaskedPath){s.translate(0,-t.ls);s.translate(0,r[1]*M*.01+l,0);if(this._pathData.p.v){_=(d.point[1]-P.point[1])/(d.point[0]-P.point[0]);var lt=Math.atan(_)*180/Math.PI;if(d.point[0]<P.point[0]){lt+=180}s.rotate(-lt*Math.PI/180)}s.translate(N,O,0);u-=r[0]*m[f].an*.005;if(m[f+1]&&G!==m[f+1].ind){u+=m[f].an/2;u+=t.tr*.001*t.finalSize}}else{s.translate(h,l,0);if(t.ps){s.translate(t.ps[0],t.ps[1]+t.ascent,0)}switch(t.j){case 1:s.translate(m[f].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[m[f].line]),0,0);break;case 2:s.translate(m[f].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[m[f].line])/2,0,0);break;default:break}s.translate(0,-t.ls);s.translate(z,0,0);s.translate(r[0]*m[f].an*.005,r[1]*M*.01,0);h+=m[f].l+t.tr*.001*t.finalSize}if(n==="html"){tt=s.toCSS()}else if(n==="svg"){tt=s.to2dCSS()}else{et=[s.props[0],s.props[1],s.props[2],s.props[3],s.props[4],s.props[5],s.props[6],s.props[7],s.props[8],s.props[9],s.props[10],s.props[11],s.props[12],s.props[13],s.props[14],s.props[15]]}rt=Y}if(o<=f){R=new LetterProps(rt,Z,U,Q,tt,et);this.renderedLetters.push(R);o+=1;this.lettersChangedFlag=true}else{R=this.renderedLetters[f];this.lettersChangedFlag=R.update(rt,Z,U,Q,tt,et)||this.lettersChangedFlag}}};TextAnimatorProperty.prototype.getValue=function(){if(this._elem.globalData.frameId===this._frameId){return}this._frameId=this._elem.globalData.frameId;this.iterateDynamicProperties()};TextAnimatorProperty.prototype.mHelper=new Matrix;TextAnimatorProperty.prototype.defaultPropsArray=[];extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(t,e,r){this.lettersChangedFlag=true;this.initFrame();this.initBaseData(t,e,r);this.textProperty=new TextProperty(this,t.t,this.dynamicProperties);this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this);this.initTransform(t,e,r);this.initHierarchy();this.initRenderable();this.initRendererElement();this.createContainerElements();this.createRenderableComponents();this.createContent();this.hide();this.textAnimator.searchProperties(this.dynamicProperties)};ITextElement.prototype.prepareFrame=function(t){this._mdf=false;this.prepareRenderableFrame(t);this.prepareProperties(t,this.isInRange);if(this.textProperty._mdf||this.textProperty._isFirstFrame){this.buildNewText();this.textProperty._isFirstFrame=false;this.textProperty._mdf=false}};ITextElement.prototype.createPathShape=function(t,e){var r;var i=e.length;var a;var s="";for(r=0;r<i;r+=1){if(e[r].ty==="sh"){a=e[r].ks.k;s+=buildShapeString(a,a.i.length,true,t)}}return s};ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)};ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)};ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)};ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,i,a){if(t.ps){e.translate(t.ps[0],t.ps[1]+t.ascent,0)}e.translate(0,-t.ls,0);switch(t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0);break;default:break}e.translate(i,a,0)};ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[2]*255)+")"};ITextElement.prototype.emptyProp=new LetterProps;ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,r){this.textSpans=[];this.renderType="svg";this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement);SVGTextLottieElement.prototype.createContent=function(){if(this.data.singleShape&&!this.globalData.fontManager.chars){this.textContainer=createNS("text")}};SVGTextLottieElement.prototype.buildTextContents=function(t){var e=0;var r=t.length;var i=[];var a="";while(e<r){if(t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)){i.push(a);a=""}else{a+=t[e]}e+=1}i.push(a);return i};SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var i=r.it[r.it.length-1];if(i.s){i.s.k[0]=e;i.s.k[1]=e}}}return t};SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t;var e;var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0);if(r.fc){this.layerElement.setAttribute("fill",this.buildColor(r.fc))}else{this.layerElement.setAttribute("fill","rgba(0,0,0,0)")}if(r.sc){this.layerElement.setAttribute("stroke",this.buildColor(r.sc));this.layerElement.setAttribute("stroke-width",r.sw)}this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass){this.layerElement.setAttribute("class",i.fClass)}else{this.layerElement.setAttribute("font-family",i.fFamily);var a=r.fWeight;var s=r.fStyle;this.layerElement.setAttribute("font-style",s);this.layerElement.setAttribute("font-weight",a)}this.layerElement.setAttribute("aria-label",r.t);var n=r.l||[];var o=!!this.globalData.fontManager.chars;e=n.length;var h;var l=this.mHelper;var f="";var p=this.data.singleShape;var m=0;var c=0;var u=true;var d=r.tr*.001*r.finalSize;if(p&&!o&&!r.sz){var v=this.textContainer;var y="start";switch(r.j){case 1:y="end";break;case 2:y="middle";break;default:y="start";break}v.setAttribute("text-anchor",y);v.setAttribute("letter-spacing",d);var g=this.buildTextContents(r.finalText);e=g.length;c=r.ps?r.ps[1]+r.ascent:0;for(t=0;t<e;t+=1){h=this.textSpans[t].span||createNS("tspan");h.textContent=g[t];h.setAttribute("x",0);h.setAttribute("y",c);h.style.display="inherit";v.appendChild(h);if(!this.textSpans[t]){this.textSpans[t]={span:null,glyph:null}}this.textSpans[t].span=h;c+=r.finalLineHeight}this.layerElement.appendChild(v)}else{var b=this.textSpans.length;var P;for(t=0;t<e;t+=1){if(!this.textSpans[t]){this.textSpans[t]={span:null,childSpan:null,glyph:null}}if(!o||!p||t===0){h=b>t?this.textSpans[t].span:createNS(o?"g":"text");if(b<=t){h.setAttribute("stroke-linecap","butt");h.setAttribute("stroke-linejoin","round");h.setAttribute("stroke-miterlimit","4");this.textSpans[t].span=h;if(o){var E=createNS("g");h.appendChild(E);this.textSpans[t].childSpan=E}this.textSpans[t].span=h;this.layerElement.appendChild(h)}h.style.display="inherit"}l.reset();if(p){if(n[t].n){m=-d;c+=r.yOffset;c+=u?1:0;u=false}this.applyTextPropertiesToMatrix(r,l,n[t].line,m,c);m+=n[t].l||0;m+=d}if(o){P=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var x;if(P.t===1){x=new SVGCompElement(P.data,this.globalData,this)}else{var S=emptyShapeData;if(P.data&&P.data.shapes){S=this.buildShapeData(P.data,r.finalSize)}x=new SVGShapeElement(S,this.globalData,this)}if(this.textSpans[t].glyph){var C=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(C.layerElement);C.destroy()}this.textSpans[t].glyph=x;x._debug=true;x.prepareFrame(0);x.renderFrame();this.textSpans[t].childSpan.appendChild(x.layerElement);if(P.t===1){this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}}else{if(p){h.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")")}h.textContent=n[t].val;h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}}if(p&&h){h.setAttribute("d",f)}}while(t<this.textSpans.length){this.textSpans[t].span.style.display="none";t+=1}this._sizeChanged=true};SVGTextLottieElement.prototype.sourceRectAtTime=function(){this.prepareFrame(this.comp.renderedFrame-this.data.st);this.renderInnerContent();if(this._sizeChanged){this._sizeChanged=false;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox};SVGTextLottieElement.prototype.getValue=function(){var t;var e=this.textSpans.length;var r;this.renderedFrame=this.comp.renderedFrame;for(t=0;t<e;t+=1){r=this.textSpans[t].glyph;if(r){r.prepareFrame(this.comp.renderedFrame-this.data.st);if(r._mdf){this._mdf=true}}}};SVGTextLottieElement.prototype.renderInnerContent=function(){if(!this.data.singleShape||this._mdf){this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);if(this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){this._sizeChanged=true;var t;var e;var r=this.textAnimator.renderedLetters;var i=this.textProperty.currentData.l;e=i.length;var a;var s;var n;for(t=0;t<e;t+=1){if(!i[t].n){a=r[t];s=this.textSpans[t].span;n=this.textSpans[t].glyph;if(n){n.renderFrame()}if(a._mdf.m){s.setAttribute("transform",a.m)}if(a._mdf.o){s.setAttribute("opacity",a.o)}if(a._mdf.sw){s.setAttribute("stroke-width",a.sw)}if(a._mdf.sc){s.setAttribute("stroke",a.sc)}if(a._mdf.fc){s.setAttribute("fill",a.fc)}}}}}};function ISolidElement(t,e,r){this.initElement(t,e,r)}extendPrototype([IImageElement],ISolidElement);ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw);t.setAttribute("height",this.data.sh);t.setAttribute("fill",this.data.sc);this.layerElement.appendChild(t)};function NullElement(t,e,r){this.initFrame();this.initBaseData(t,e,r);this.initFrame();this.initTransform(t,e,r);this.initHierarchy()}NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,true)};NullElement.prototype.renderFrame=function(){};NullElement.prototype.getBaseElement=function(){return null};NullElement.prototype.destroy=function(){};NullElement.prototype.sourceRectAtTime=function(){};NullElement.prototype.hide=function(){};extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase);SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)};SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)};SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)};SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)};SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)};SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg");if(this.renderConfig.viewBoxSize){this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize)}else{this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h)}if(!this.renderConfig.viewBoxOnly){this.svgElement.setAttribute("width",t.w);this.svgElement.setAttribute("height",t.h);this.svgElement.style.width="100%";this.svgElement.style.height="100%";this.svgElement.style.transform="translate3d(0,0,0)";this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility}if(this.renderConfig.width){this.svgElement.setAttribute("width",this.renderConfig.width)}if(this.renderConfig.height){this.svgElement.setAttribute("height",this.renderConfig.height)}if(this.renderConfig.className){this.svgElement.setAttribute("class",this.renderConfig.className)}if(this.renderConfig.id){this.svgElement.setAttribute("id",this.renderConfig.id)}if(this.renderConfig.focusable!==undefined){this.svgElement.setAttribute("focusable",this.renderConfig.focusable)}this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio);this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e);this.globalData.progressiveLoad=this.renderConfig.progressiveLoad;this.data=t;var r=createNS("clipPath");var i=createNS("rect");i.setAttribute("width",t.w);i.setAttribute("height",t.h);i.setAttribute("x",0);i.setAttribute("y",0);var a=createElementID();r.setAttribute("id",a);r.appendChild(i);this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")");e.appendChild(r);this.layers=t.layers;this.elements=createSizedArray(t.layers.length)};SVGRendererBase.prototype.destroy=function(){if(this.animationItem.wrapper){this.animationItem.wrapper.innerText=""}this.layerElement=null;this.globalData.defs=null;var t;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1){if(this.elements[t]){this.elements[t].destroy()}}this.elements.length=0;this.destroyed=true;this.animationItem=null};SVGRendererBase.prototype.updateContainerSize=function(){};SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(e[t]||this.layers[t].ty===99){return}e[t]=true;var r=this.createItem(this.layers[t]);e[t]=r;if(getExpressionsPlugin()){if(this.layers[t].ty===0){this.globalData.projectInterface.registerComposition(r)}r.initExpressions()}this.appendElementInPos(r,t);if(this.layers[t].tt){if(!this.elements[t-1]||this.elements[t-1]===true){this.buildItem(t-1);this.addPendingElement(r)}else{r.setMatte(e[t-1].layerId)}}};SVGRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var t=this.pendingElements.pop();t.checkParenting();if(t.data.tt){var e=0;var r=this.elements.length;while(e<r){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}}};SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame===t||this.destroyed){return}if(t===null){t=this.renderedFrame}else{this.renderedFrame=t}this.globalData.frameNum=t;this.globalData.frameId+=1;this.globalData.projectInterface.currentFrame=t;this.globalData._mdf=false;var e;var r=this.layers.length;if(!this.completeLayers){this.checkLayers(t)}for(e=r-1;e>=0;e-=1){if(this.completeLayers||this.elements[e]){this.elements[e].prepareFrame(t-this.layers[e].st)}}if(this.globalData._mdf){for(e=0;e<r;e+=1){if(this.completeLayers||this.elements[e]){this.elements[e].renderFrame()}}}};SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(!r){return}var i=0;var a;while(i<e){if(this.elements[i]&&this.elements[i]!==true&&this.elements[i].getBaseElement()){a=this.elements[i].getBaseElement()}i+=1}if(a){this.layerElement.insertBefore(r,a)}else{this.layerElement.appendChild(r)}};SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"};SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement);ICompElement.prototype.initElement=function(t,e,r){this.initFrame();this.initBaseData(t,e,r);this.initTransform(t,e,r);this.initRenderable();this.initHierarchy();this.initRendererElement();this.createContainerElements();this.createRenderableComponents();if(this.data.xt||!e.progressiveLoad){this.buildAllItems()}this.hide()};ICompElement.prototype.prepareFrame=function(t){this._mdf=false;this.prepareRenderableFrame(t);this.prepareProperties(t,this.isInRange);if(!this.isInRange&&!this.data.xt){return}if(!this.tm._placeholder){var e=this.tm.v;if(e===this.data.op){e=this.data.op-1}this.renderedFrame=e}else{this.renderedFrame=t/this.data.sr}var r;var i=this.elements.length;if(!this.completeLayers){this.checkLayers(this.renderedFrame)}for(r=i-1;r>=0;r-=1){if(this.completeLayers||this.elements[r]){this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st);if(this.elements[r]._mdf){this._mdf=true}}}};ICompElement.prototype.renderInnerContent=function(){var t;var e=this.layers.length;for(t=0;t<e;t+=1){if(this.completeLayers||this.elements[t]){this.elements[t].renderFrame()}}};ICompElement.prototype.setElements=function(t){this.elements=t};ICompElement.prototype.getElements=function(){return this.elements};ICompElement.prototype.destroyElements=function(){var t;var e=this.layers.length;for(t=0;t<e;t+=1){if(this.elements[t]){this.elements[t].destroy()}}};ICompElement.prototype.destroy=function(){this.destroyElements();this.destroyBaseElement()};function SVGCompElement(t,e,r){this.layers=t.layers;this.supports3d=true;this.completeLayers=false;this.pendingElements=[];this.elements=this.layers?createSizedArray(this.layers.length):[];this.initElement(t,e,r);this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:true}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement);SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)};function SVGRenderer(t,e){this.animationItem=t;this.layers=null;this.renderedFrame=-1;this.svgElement=createNS("svg");var r="";if(e&&e.title){var i=createNS("title");var a=createElementID();i.setAttribute("id",a);i.textContent=e.title;this.svgElement.appendChild(i);r+=a}if(e&&e.description){var s=createNS("desc");var n=createElementID();s.setAttribute("id",n);s.textContent=e.description;this.svgElement.appendChild(s);r+=" "+n}if(r){this.svgElement.setAttribute("aria-labelledby",r)}var o=createNS("defs");this.svgElement.appendChild(o);var h=createNS("g");this.svgElement.appendChild(h);this.layerElement=h;this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||false,hideOnTransparent:!(e&&e.hideOnTransparent===false),viewBoxOnly:e&&e.viewBoxOnly||false,viewBoxSize:e&&e.viewBoxSize||false,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height};this.globalData={_mdf:false,frameNum:-1,defs:o,renderConfig:this.renderConfig};this.elements=[];this.pendingElements=[];this.destroyed=false;this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer);SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)};function CVContextData(){this.saved=[];this.cArrPos=0;this.cTr=new Matrix;this.cO=1;var t;var e=15;this.savedOp=createTypedArray("float32",e);for(t=0;t<e;t+=1){this.saved[t]=createTypedArray("float32",16)}this._length=e}CVContextData.prototype.duplicate=function(){var t=this._length*2;var e=this.savedOp;this.savedOp=createTypedArray("float32",t);this.savedOp.set(e);var r=0;for(r=this._length;r<t;r+=1){this.saved[r]=createTypedArray("float32",16)}this._length=t};CVContextData.prototype.reset=function(){this.cArrPos=0;this.cTr.reset();this.cO=1};function ShapeTransformManager(){this.sequences={};this.sequenceList=[];this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var e;var r=t.length;var i="_";for(e=0;e<r;e+=1){i+=t[e].transform.key+"_"}var a=this.sequences[i];if(!a){a={transforms:[].concat(t),finalTransform:new Matrix,_mdf:false};this.sequences[i]=a;this.sequenceList.push(a)}return a},processSequence:function(t,e){var r=0;var i=t.transforms.length;var a=e;while(r<i&&!e){if(t.transforms[r].transform.mProps._mdf){a=true;break}r+=1}if(a){var s;t.finalTransform.reset();for(r=i-1;r>=0;r-=1){s=t.transforms[r].transform.mProps.v.props;t.finalTransform.transform(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11],s[12],s[13],s[14],s[15])}}t._mdf=a},processSequences:function(t){var e;var r=this.sequenceList.length;for(e=0;e<r;e+=1){this.processSequence(this.sequenceList[e],t)}},getNewKey:function(){this.transform_key_count+=1;return"_"+this.transform_key_count}};function CVEffects(){}CVEffects.prototype.renderFrame=function(){};function CVMaskElement(t,e){this.data=t;this.element=e;this.masksProperties=this.data.masksProperties||[];this.viewData=createSizedArray(this.masksProperties.length);var r;var i=this.masksProperties.length;var a=false;for(r=0;r<i;r+=1){if(this.masksProperties[r].mode!=="n"){a=true}this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3)}this.hasMasks=a;if(a){this.element.addRenderableComponent(this)}}CVMaskElement.prototype.renderFrame=function(){if(!this.hasMasks){return}var t=this.element.finalTransform.mat;var e=this.element.canvasContext;var r;var i=this.masksProperties.length;var a;var s;var n;e.beginPath();for(r=0;r<i;r+=1){if(this.masksProperties[r].mode!=="n"){if(this.masksProperties[r].inv){e.moveTo(0,0);e.lineTo(this.element.globalData.compSize.w,0);e.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h);e.lineTo(0,this.element.globalData.compSize.h);e.lineTo(0,0)}n=this.viewData[r].v;a=t.applyToPointArray(n.v[0][0],n.v[0][1],0);e.moveTo(a[0],a[1]);var o;var h=n._length;for(o=1;o<h;o+=1){s=t.applyToTriplePoints(n.o[o-1],n.i[o],n.v[o]);e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5])}s=t.applyToTriplePoints(n.o[o-1],n.i[0],n.v[0]);e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5])}}this.element.globalData.renderer.save(true);e.clip()};CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty;CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext;this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){this.hidden=true}},showElement:function(){if(this.isInRange&&!this.isTransparent){this.hidden=false;this._isFirstFrame=true;this.maskManager._isFirstFrame=true}},renderFrame:function(){if(this.hidden||this.data.hd){return}this.renderTransform();this.renderRenderable();this.setBlendMode();var t=this.data.ty===0;this.globalData.renderer.save(t);this.globalData.renderer.ctxTransform(this.finalTransform.mat.props);this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v);this.renderInnerContent();this.globalData.renderer.restore(t);if(this.maskManager.hasMasks){this.globalData.renderer.restore(true)}if(this._isFirstFrame){this._isFirstFrame=false}},destroy:function(){this.canvasContext=null;this.data=null;this.globalData=null;this.maskManager.destroy()},mHelper:new Matrix};CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement;CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(t,e,r,i){this.styledShapes=[];this.tr=[0,0,0,0,0,0];var a=4;if(e.ty==="rc"){a=5}else if(e.ty==="el"){a=6}else if(e.ty==="sr"){a=7}this.sh=ShapePropertyFactory.getShapeProp(t,e,a,t);var s;var n=r.length;var o;for(s=0;s<n;s+=1){if(!r[s].closed){o={transforms:i.addTransformSequence(r[s].transforms),trNodes:[]};this.styledShapes.push(o);r[s].elements.push(o)}}}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(t,e,r){this.shapes=[];this.shapesData=t.shapes;this.stylesList=[];this.itemsData=[];this.prevViewData=[];this.shapeModifiers=[];this.processedElements=[];this.transformsManager=new ShapeTransformManager;this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement);CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement;CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:false};CVShapeElement.prototype.dashResetter=[];CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,true,[])};CVShapeElement.prototype.createStyleElement=function(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:t.hd===true};var i={};if(t.ty==="fl"||t.ty==="st"){i.c=PropertyFactory.getProp(this,t.c,1,255,this);if(!i.c.k){r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")"}}else if(t.ty==="gf"||t.ty==="gs"){i.s=PropertyFactory.getProp(this,t.s,1,null,this);i.e=PropertyFactory.getProp(this,t.e,1,null,this);i.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this);i.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this);i.g=new GradientProperty(this,t.g,this)}i.o=PropertyFactory.getProp(this,t.o,0,.01,this);if(t.ty==="st"||t.ty==="gs"){r.lc=lineCapEnum[t.lc||2];r.lj=lineJoinEnum[t.lj||2];if(t.lj==1){r.ml=t.ml}i.w=PropertyFactory.getProp(this,t.w,0,null,this);if(!i.w.k){r.wi=i.w.v}if(t.d){var a=new DashProperty(this,t.d,"canvas",this);i.d=a;if(!i.d.k){r.da=i.d.dashArray;r.do=i.d.dashoffset[0]}}}else{r.r=t.r===2?"evenodd":"nonzero"}this.stylesList.push(r);i.style=r;return i};CVShapeElement.prototype.createGroupElement=function(){var t={it:[],prevViewData:[]};return t};CVShapeElement.prototype.createTransformElement=function(t){var e={transform:{opacity:1,_opMdf:false,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}};return e};CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);this.shapes.push(e);this.addShapeToModifiers(e);return e};CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=true;var t;var e=this.itemsData.length;for(t=0;t<e;t+=1){this.prevViewData[t]=this.itemsData[t]}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,true,[]);e=this.dynamicProperties.length;for(t=0;t<e;t+=1){this.dynamicProperties[t].getValue()}this.renderModifiers();this.transformsManager.processSequences(this._isFirstFrame)};CVShapeElement.prototype.addTransformToStyleList=function(t){var e;var r=this.stylesList.length;for(e=0;e<r;e+=1){if(!this.stylesList[e].closed){this.stylesList[e].transforms.push(t)}}};CVShapeElement.prototype.removeTransformFromStyleList=function(){var t;var e=this.stylesList.length;for(t=0;t<e;t+=1){if(!this.stylesList[t].closed){this.stylesList[t].transforms.pop()}}};CVShapeElement.prototype.closeStyles=function(t){var e;var r=t.length;for(e=0;e<r;e+=1){t[e].closed=true}};CVShapeElement.prototype.searchShapes=function(t,e,r,i,a){var s;var n=t.length-1;var o;var h;var l=[];var f=[];var p;var m;var c;var u=[].concat(a);for(s=n;s>=0;s-=1){p=this.searchProcessedElement(t[s]);if(!p){t[s]._shouldRender=i}else{e[s]=r[p-1]}if(t[s].ty==="fl"||t[s].ty==="st"||t[s].ty==="gf"||t[s].ty==="gs"){if(!p){e[s]=this.createStyleElement(t[s],u)}else{e[s].style.closed=false}l.push(e[s].style)}else if(t[s].ty==="gr"){if(!p){e[s]=this.createGroupElement(t[s])}else{h=e[s].it.length;for(o=0;o<h;o+=1){e[s].prevViewData[o]=e[s].it[o]}}this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,i,u)}else if(t[s].ty==="tr"){if(!p){c=this.createTransformElement(t[s]);e[s]=c}u.push(e[s]);this.addTransformToStyleList(e[s])}else if(t[s].ty==="sh"||t[s].ty==="rc"||t[s].ty==="el"||t[s].ty==="sr"){if(!p){e[s]=this.createShapeElement(t[s])}}else if(t[s].ty==="tm"||t[s].ty==="rd"||t[s].ty==="pb"){if(!p){m=ShapeModifiers.getModifier(t[s].ty);m.init(this,t[s]);e[s]=m;this.shapeModifiers.push(m)}else{m=e[s];m.closed=false}f.push(m)}else if(t[s].ty==="rp"){if(!p){m=ShapeModifiers.getModifier(t[s].ty);e[s]=m;m.init(this,t,s,e);this.shapeModifiers.push(m);i=false}else{m=e[s];m.closed=true}f.push(m)}this.addProcessedElement(t[s],s+1)}this.removeTransformFromStyleList();this.closeStyles(l);n=f.length;for(s=0;s<n;s+=1){f[s].closed=true}};CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1;this.transformHelper._opMdf=false;this.renderModifiers();this.transformsManager.processSequences(this._isFirstFrame);this.renderShape(this.transformHelper,this.shapesData,this.itemsData,true)};CVShapeElement.prototype.renderShapeTransform=function(t,e){if(t._opMdf||e.op._mdf||this._isFirstFrame){e.opacity=t.opacity;e.opacity*=e.op.v;e._opMdf=true}};CVShapeElement.prototype.drawLayer=function(){var t;var e=this.stylesList.length;var r;var i;var a;var s;var n;var o;var h=this.globalData.renderer;var l=this.globalData.canvasContext;var f;var p;for(t=0;t<e;t+=1){p=this.stylesList[t];f=p.type;if(!((f==="st"||f==="gs")&&p.wi===0||!p.data._shouldRender||p.coOp===0||this.globalData.currentGlobalAlpha===0)){h.save();n=p.elements;if(f==="st"||f==="gs"){l.strokeStyle=f==="st"?p.co:p.grd;l.lineWidth=p.wi;l.lineCap=p.lc;l.lineJoin=p.lj;l.miterLimit=p.ml||0}else{l.fillStyle=f==="fl"?p.co:p.grd}h.ctxOpacity(p.coOp);if(f!=="st"&&f!=="gs"){l.beginPath()}h.ctxTransform(p.preTransforms.finalTransform.props);i=n.length;for(r=0;r<i;r+=1){if(f==="st"||f==="gs"){l.beginPath();if(p.da){l.setLineDash(p.da);l.lineDashOffset=p.do}}o=n[r].trNodes;s=o.length;for(a=0;a<s;a+=1){if(o[a].t==="m"){l.moveTo(o[a].p[0],o[a].p[1])}else if(o[a].t==="c"){l.bezierCurveTo(o[a].pts[0],o[a].pts[1],o[a].pts[2],o[a].pts[3],o[a].pts[4],o[a].pts[5])}else{l.closePath()}}if(f==="st"||f==="gs"){l.stroke();if(p.da){l.setLineDash(this.dashResetter)}}}if(f!=="st"&&f!=="gs"){l.fill(p.r)}h.restore()}}};CVShapeElement.prototype.renderShape=function(t,e,r,i){var a;var s=e.length-1;var n;n=t;for(a=s;a>=0;a-=1){if(e[a].ty==="tr"){n=r[a].transform;this.renderShapeTransform(t,n)}else if(e[a].ty==="sh"||e[a].ty==="el"||e[a].ty==="rc"||e[a].ty==="sr"){this.renderPath(e[a],r[a])}else if(e[a].ty==="fl"){this.renderFill(e[a],r[a],n)}else if(e[a].ty==="st"){this.renderStroke(e[a],r[a],n)}else if(e[a].ty==="gf"||e[a].ty==="gs"){this.renderGradientFill(e[a],r[a],n)}else if(e[a].ty==="gr"){this.renderShape(n,e[a].it,r[a].it)}else if(e[a].ty==="tm");}if(i){this.drawLayer()}};CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r=t.trNodes;var i=e.paths;var a;var s;var n;var o=i._length;r.length=0;var h=t.transforms.finalTransform;for(n=0;n<o;n+=1){var l=i.shapes[n];if(l&&l.v){s=l._length;for(a=1;a<s;a+=1){if(a===1){r.push({t:"m",p:h.applyToPointArray(l.v[0][0],l.v[0][1],0)})}r.push({t:"c",pts:h.applyToTriplePoints(l.o[a-1],l.i[a],l.v[a])})}if(s===1){r.push({t:"m",p:h.applyToPointArray(l.v[0][0],l.v[0][1],0)})}if(l.c&&s){r.push({t:"c",pts:h.applyToTriplePoints(l.o[a-1],l.i[0],l.v[0])});r.push({t:"z"})}}}t.trNodes=r}};CVShapeElement.prototype.renderPath=function(t,e){if(t.hd!==true&&t._shouldRender){var r;var i=e.styledShapes.length;for(r=0;r<i;r+=1){this.renderStyledShape(e.styledShapes[r],e.sh)}}};CVShapeElement.prototype.renderFill=function(t,e,r){var i=e.style;if(e.c._mdf||this._isFirstFrame){i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"}if(e.o._mdf||r._opMdf||this._isFirstFrame){i.coOp=e.o.v*r.opacity}};CVShapeElement.prototype.renderGradientFill=function(t,e,r){var i=e.style;var a;if(!i.grd||e.g._mdf||e.s._mdf||e.e._mdf||t.t!==1&&(e.h._mdf||e.a._mdf)){var s=this.globalData.canvasContext;var n=e.s.v;var o=e.e.v;if(t.t===1){a=s.createLinearGradient(n[0],n[1],o[0],o[1])}else{var h=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2));var l=Math.atan2(o[1]-n[1],o[0]-n[0]);var f=e.h.v;if(f>=1){f=.99}else if(f<=-1){f=-.99}var p=h*f;var m=Math.cos(l+e.a.v)*p+n[0];var c=Math.sin(l+e.a.v)*p+n[1];a=s.createRadialGradient(m,c,0,n[0],n[1],h)}var u;var d=t.g.p;var v=e.g.c;var y=1;for(u=0;u<d;u+=1){if(e.g._hasOpacity&&e.g._collapsable){y=e.g.o[u*2+1]}a.addColorStop(v[u*4]/100,"rgba("+v[u*4+1]+","+v[u*4+2]+","+v[u*4+3]+","+y+")")}i.grd=a}i.coOp=e.o.v*r.opacity};CVShapeElement.prototype.renderStroke=function(t,e,r){var i=e.style;var a=e.d;if(a&&(a._mdf||this._isFirstFrame)){i.da=a.dashArray;i.do=a.dashoffset[0]}if(e.c._mdf||this._isFirstFrame){i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"}if(e.o._mdf||r._opMdf||this._isFirstFrame){i.coOp=e.o.v*r.opacity}if(e.w._mdf||this._isFirstFrame){i.wi=e.w.v}};CVShapeElement.prototype.destroy=function(){this.shapesData=null;this.globalData=null;this.canvasContext=null;this.stylesList.length=0;this.itemsData.length=0};function CVTextElement(t,e,r){this.textSpans=[];this.yOffset=0;this.fillColorAnim=false;this.strokeColorAnim=false;this.strokeWidthAnim=false;this.stroke=false;this.fill=false;this.justifyOffset=0;this.currentRender=null;this.renderType="canvas";this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""};this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement);CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d");CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=false;if(t.fc){e=true;this.values.fill=this.buildColor(t.fc)}else{this.values.fill="rgba(0,0,0,0)"}this.fill=e;var r=false;if(t.sc){r=true;this.values.stroke=this.buildColor(t.sc);this.values.sWidth=t.sw}var i=this.globalData.fontManager.getFontByName(t.f);var a;var s;var n=t.l;var o=this.mHelper;this.stroke=r;this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily;s=t.finalText.length;var h;var l;var f;var p;var m;var c;var u;var d;var v;var y;var g=this.data.singleShape;var b=t.tr*.001*t.finalSize;var P=0;var E=0;var x=true;var S=0;for(a=0;a<s;a+=1){h=this.globalData.fontManager.getCharData(t.finalText[a],i.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);l=h&&h.data||{};o.reset();if(g&&n[a].n){P=-b;E+=t.yOffset;E+=x?1:0;x=false}m=l.shapes?l.shapes[0].it:[];u=m.length;o.scale(t.finalSize/100,t.finalSize/100);if(g){this.applyTextPropertiesToMatrix(t,o,n[a].line,P,E)}v=createSizedArray(u-1);var C=0;for(c=0;c<u;c+=1){if(m[c].ty==="sh"){p=m[c].ks.k.i.length;d=m[c].ks.k;y=[];for(f=1;f<p;f+=1){if(f===1){y.push(o.applyToX(d.v[0][0],d.v[0][1],0),o.applyToY(d.v[0][0],d.v[0][1],0))}y.push(o.applyToX(d.o[f-1][0],d.o[f-1][1],0),o.applyToY(d.o[f-1][0],d.o[f-1][1],0),o.applyToX(d.i[f][0],d.i[f][1],0),o.applyToY(d.i[f][0],d.i[f][1],0),o.applyToX(d.v[f][0],d.v[f][1],0),o.applyToY(d.v[f][0],d.v[f][1],0))}y.push(o.applyToX(d.o[f-1][0],d.o[f-1][1],0),o.applyToY(d.o[f-1][0],d.o[f-1][1],0),o.applyToX(d.i[0][0],d.i[0][1],0),o.applyToY(d.i[0][0],d.i[0][1],0),o.applyToX(d.v[0][0],d.v[0][1],0),o.applyToY(d.v[0][0],d.v[0][1],0));v[C]=y;C+=1}}if(g){P+=n[a].l;P+=b}if(this.textSpans[S]){this.textSpans[S].elem=v}else{this.textSpans[S]={elem:v}}S+=1}};CVTextElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.font=this.values.fValue;t.lineCap="butt";t.lineJoin="miter";t.miterLimit=4;if(!this.data.singleShape){this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag)}var e;var r;var i;var a;var s;var n;var o=this.textAnimator.renderedLetters;var h=this.textProperty.currentData.l;r=h.length;var l;var f=null;var p=null;var m=null;var c;var u;for(e=0;e<r;e+=1){if(!h[e].n){l=o[e];if(l){this.globalData.renderer.save();this.globalData.renderer.ctxTransform(l.p);this.globalData.renderer.ctxOpacity(l.o)}if(this.fill){if(l&&l.fc){if(f!==l.fc){f=l.fc;t.fillStyle=l.fc}}else if(f!==this.values.fill){f=this.values.fill;t.fillStyle=this.values.fill}c=this.textSpans[e].elem;a=c.length;this.globalData.canvasContext.beginPath();for(i=0;i<a;i+=1){u=c[i];n=u.length;this.globalData.canvasContext.moveTo(u[0],u[1]);for(s=2;s<n;s+=6){this.globalData.canvasContext.bezierCurveTo(u[s],u[s+1],u[s+2],u[s+3],u[s+4],u[s+5])}}this.globalData.canvasContext.closePath();this.globalData.canvasContext.fill()}if(this.stroke){if(l&&l.sw){if(m!==l.sw){m=l.sw;t.lineWidth=l.sw}}else if(m!==this.values.sWidth){m=this.values.sWidth;t.lineWidth=this.values.sWidth}if(l&&l.sc){if(p!==l.sc){p=l.sc;t.strokeStyle=l.sc}}else if(p!==this.values.stroke){p=this.values.stroke;t.strokeStyle=this.values.stroke}c=this.textSpans[e].elem;a=c.length;this.globalData.canvasContext.beginPath();for(i=0;i<a;i+=1){u=c[i];n=u.length;this.globalData.canvasContext.moveTo(u[0],u[1]);for(s=2;s<n;s+=6){this.globalData.canvasContext.bezierCurveTo(u[s],u[s+1],u[s+2],u[s+3],u[s+4],u[s+5])}}this.globalData.canvasContext.closePath();this.globalData.canvasContext.stroke()}if(l){this.globalData.renderer.restore()}}}};function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId);this.img=e.imageLoader.getAsset(this.assetData);this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement);CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement;CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame;CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w;t.height=this.assetData.h;var e=t.getContext("2d");var r=this.img.width;var i=this.img.height;var a=r/i;var s=this.assetData.w/this.assetData.h;var n;var o;var h=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;if(a>s&&h==="xMidYMid slice"||a<s&&h!=="xMidYMid slice"){o=i;n=o*s}else{n=r;o=n/s}e.drawImage(this.img,(r-n)/2,(i-o)/2,n,o,0,0,this.assetData.w,this.assetData.h);this.img=t}};CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)};CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(t,e,r){this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement);CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement;CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame;CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc;t.fillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(t,e){this.animationItem=t;this.renderConfig={clearCanvas:e&&e.clearCanvas!==undefined?e.clearCanvas:true,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||false,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""};this.renderConfig.dpr=e&&e.dpr||1;if(this.animationItem.wrapper){this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1}this.renderedFrame=-1;this.globalData={frameNum:-1,_mdf:false,renderConfig:this.renderConfig,currentGlobalAlpha:-1};this.contextData=new CVContextData;this.elements=[];this.pendingElements=[];this.transformMat=new Matrix;this.completeLayers=false;this.rendererType="canvas"}extendPrototype([BaseRenderer],CanvasRendererBase);CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)};CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)};CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)};CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)};CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull;CanvasRendererBase.prototype.ctxTransform=function(t){if(t[0]===1&&t[1]===0&&t[4]===0&&t[5]===1&&t[12]===0&&t[13]===0){return}if(!this.renderConfig.clearCanvas){this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13]);return}this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]);this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])};CanvasRendererBase.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas){this.canvasContext.globalAlpha*=t<0?0:t;this.globalData.currentGlobalAlpha=this.contextData.cO;return}this.contextData.cO*=t<0?0:t;if(this.globalData.currentGlobalAlpha!==this.contextData.cO){this.canvasContext.globalAlpha=this.contextData.cO;this.globalData.currentGlobalAlpha=this.contextData.cO}};CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()};CanvasRendererBase.prototype.save=function(t){if(!this.renderConfig.clearCanvas){this.canvasContext.save();return}if(t){this.canvasContext.save()}var e=this.contextData.cTr.props;if(this.contextData._length<=this.contextData.cArrPos){this.contextData.duplicate()}var r;var i=this.contextData.saved[this.contextData.cArrPos];for(r=0;r<16;r+=1){i[r]=e[r]}this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO;this.contextData.cArrPos+=1};CanvasRendererBase.prototype.restore=function(t){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}if(t){this.canvasContext.restore();this.globalData.blendMode="source-over"}this.contextData.cArrPos-=1;var e=this.contextData.saved[this.contextData.cArrPos];var r;var i=this.contextData.cTr.props;for(r=0;r<16;r+=1){i[r]=e[r]}this.canvasContext.setTransform(e[0],e[1],e[4],e[5],e[12],e[13]);e=this.contextData.savedOp[this.contextData.cArrPos];this.contextData.cO=e;if(this.globalData.currentGlobalAlpha!==e){this.canvasContext.globalAlpha=e;this.globalData.currentGlobalAlpha=e}};CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%";e.height="100%";var r="0px 0px 0px";e.transformOrigin=r;e.mozTransformOrigin=r;e.webkitTransformOrigin=r;e["-webkit-transform"]=r;e.contentVisibility=this.renderConfig.contentVisibility;this.animationItem.wrapper.appendChild(this.animationItem.container);this.canvasContext=this.animationItem.container.getContext("2d");if(this.renderConfig.className){this.animationItem.container.setAttribute("class",this.renderConfig.className)}if(this.renderConfig.id){this.animationItem.container.setAttribute("id",this.renderConfig.id)}}else{this.canvasContext=this.renderConfig.context}this.data=t;this.layers=t.layers;this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0};this.setupGlobalData(t,document.body);this.globalData.canvasContext=this.canvasContext;this.globalData.renderer=this;this.globalData.isDashed=false;this.globalData.progressiveLoad=this.renderConfig.progressiveLoad;this.globalData.transformCanvas=this.transformCanvas;this.elements=createSizedArray(t.layers.length);this.updateContainerSize()};CanvasRendererBase.prototype.updateContainerSize=function(){this.reset();var t;var e;if(this.animationItem.wrapper&&this.animationItem.container){t=this.animationItem.wrapper.offsetWidth;e=this.animationItem.wrapper.offsetHeight;this.animationItem.container.setAttribute("width",t*this.renderConfig.dpr);this.animationItem.container.setAttribute("height",e*this.renderConfig.dpr)}else{t=this.canvasContext.canvas.width*this.renderConfig.dpr;e=this.canvasContext.canvas.height*this.renderConfig.dpr}var r;var i;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var a=this.renderConfig.preserveAspectRatio.split(" ");var s=a[1]||"meet";var n=a[0]||"xMidYMid";var o=n.substr(0,4);var h=n.substr(4);r=t/e;i=this.transformCanvas.w/this.transformCanvas.h;if(i>r&&s==="meet"||i<r&&s==="slice"){this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr);this.transformCanvas.sy=t/(this.transformCanvas.w/this.renderConfig.dpr)}else{this.transformCanvas.sx=e/(this.transformCanvas.h/this.renderConfig.dpr);this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)}if(o==="xMid"&&(i<r&&s==="meet"||i>r&&s==="slice")){this.transformCanvas.tx=(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr}else if(o==="xMax"&&(i<r&&s==="meet"||i>r&&s==="slice")){this.transformCanvas.tx=(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr}else{this.transformCanvas.tx=0}if(h==="YMid"&&(i>r&&s==="meet"||i<r&&s==="slice")){this.transformCanvas.ty=(e-this.transformCanvas.h*(t/this.transformCanvas.w))/2*this.renderConfig.dpr}else if(h==="YMax"&&(i>r&&s==="meet"||i<r&&s==="slice")){this.transformCanvas.ty=(e-this.transformCanvas.h*(t/this.transformCanvas.w))*this.renderConfig.dpr}else{this.transformCanvas.ty=0}}else if(this.renderConfig.preserveAspectRatio==="none"){this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr);this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr);this.transformCanvas.tx=0;this.transformCanvas.ty=0}else{this.transformCanvas.sx=this.renderConfig.dpr;this.transformCanvas.sy=this.renderConfig.dpr;this.transformCanvas.tx=0;this.transformCanvas.ty=0}this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1];this.ctxTransform(this.transformCanvas.props);this.canvasContext.beginPath();this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h);this.canvasContext.closePath();this.canvasContext.clip();this.renderFrame(this.renderedFrame,true)};CanvasRendererBase.prototype.destroy=function(){if(this.renderConfig.clearCanvas&&this.animationItem.wrapper){this.animationItem.wrapper.innerText=""}var t;var e=this.layers?this.layers.length:0;for(t=e-1;t>=0;t-=1){if(this.elements[t]){this.elements[t].destroy()}}this.elements.length=0;this.globalData.canvasContext=null;this.animationItem.container=null;this.destroyed=true};CanvasRendererBase.prototype.renderFrame=function(t,e){if(this.renderedFrame===t&&this.renderConfig.clearCanvas===true&&!e||this.destroyed||t===-1){return}this.renderedFrame=t;this.globalData.frameNum=t-this.animationItem._isFirstFrame;this.globalData.frameId+=1;this.globalData._mdf=!this.renderConfig.clearCanvas||e;this.globalData.projectInterface.currentFrame=t;var r;var i=this.layers.length;if(!this.completeLayers){this.checkLayers(t)}for(r=0;r<i;r+=1){if(this.completeLayers||this.elements[r]){this.elements[r].prepareFrame(t-this.layers[r].st)}}if(this.globalData._mdf){if(this.renderConfig.clearCanvas===true){this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h)}else{this.save()}for(r=i-1;r>=0;r-=1){if(this.completeLayers||this.elements[r]){this.elements[r].renderFrame()}}if(this.renderConfig.clearCanvas!==true){this.restore()}}};CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(e[t]||this.layers[t].ty===99){return}var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r;r.initExpressions()};CanvasRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var t=this.pendingElements.pop();t.checkParenting()}};CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"};CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CVCompElement(t,e,r){this.completeLayers=false;this.layers=t.layers;this.pendingElements=[];this.elements=createSizedArray(this.layers.length);this.initElement(t,e,r);this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:true}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement);CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath();t.moveTo(0,0);t.lineTo(this.data.w,0);t.lineTo(this.data.w,this.data.h);t.lineTo(0,this.data.h);t.lineTo(0,0);t.clip();var e;var r=this.layers.length;for(e=r-1;e>=0;e-=1){if(this.completeLayers||this.elements[e]){this.elements[e].renderFrame()}}};CVCompElement.prototype.destroy=function(){var t;var e=this.layers.length;for(t=e-1;t>=0;t-=1){if(this.elements[t]){this.elements[t].destroy()}}this.layers=null;this.elements=null};CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function CanvasRenderer(t,e){this.animationItem=t;this.renderConfig={clearCanvas:e&&e.clearCanvas!==undefined?e.clearCanvas:true,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||false,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""};this.renderConfig.dpr=e&&e.dpr||1;if(this.animationItem.wrapper){this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1}this.renderedFrame=-1;this.globalData={frameNum:-1,_mdf:false,renderConfig:this.renderConfig,currentGlobalAlpha:-1};this.contextData=new CVContextData;this.elements=[];this.pendingElements=[];this.transformMat=new Matrix;this.completeLayers=false;this.rendererType="canvas"}extendPrototype([CanvasRendererBase],CanvasRenderer);CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div");if(this.data.hasMask){this.svgElement=createNS("svg");this.layerElement=createNS("g");this.maskedElement=this.layerElement;this.svgElement.appendChild(this.layerElement);this.baseElement.appendChild(this.svgElement)}else{this.layerElement=this.baseElement}styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this);this.transformedElement=this.baseElement;this.maskedElement=this.layerElement;if(this.data.ln){this.layerElement.setAttribute("id",this.data.ln)}if(this.data.cl){this.layerElement.setAttribute("class",this.data.cl)}if(this.data.bm!==0){this.setBlendMode()}},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e;t.webkitTransform=e}if(this.finalTransform._opMdf){t.opacity=this.finalTransform.mProp.o.v}},renderFrame:function(){if(this.data.hd||this.hidden){return}this.renderTransform();this.renderRenderable();this.renderElement();this.renderInnerContent();if(this._isFirstFrame){this._isFirstFrame=false}},destroy:function(){this.layerElement=null;this.transformedElement=null;if(this.matteElement){this.matteElement=null}if(this.maskManager){this.maskManager.destroy();this.maskManager=null}},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}};HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement;HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy;HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(t,e,r){this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement);HSolidElement.prototype.createContent=function(){var t;if(this.data.hasMask){t=createNS("rect");t.setAttribute("width",this.data.sw);t.setAttribute("height",this.data.sh);t.setAttribute("fill",this.data.sc);this.svgElement.setAttribute("width",this.data.sw);this.svgElement.setAttribute("height",this.data.sh)}else{t=createTag("div");t.style.width=this.data.sw+"px";t.style.height=this.data.sh+"px";t.style.backgroundColor=this.data.sc}this.layerElement.appendChild(t)};function HShapeElement(t,e,r){this.shapes=[];this.shapesData=t.shapes;this.stylesList=[];this.shapeModifiers=[];this.itemsData=[];this.processedElements=[];this.animatedContents=[];this.shapesContainer=createNS("g");this.initElement(t,e,r);this.prevViewData=[];this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement);HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent;HShapeElement.prototype.createContent=function(){var t;this.baseElement.style.fontSize=0;if(this.data.hasMask){this.layerElement.appendChild(this.shapesContainer);t=this.svgElement}else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w);t.setAttribute("height",e.h);t.appendChild(this.shapesContainer);this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],true);this.filterUniqueShapes();this.shapeCont=t};HShapeElement.prototype.getTransformedPoint=function(t,e){var r;var i=t.length;for(r=0;r<i;r+=1){e=t[r].mProps.v.applyToPointArray(e[0],e[1],0)}return e};HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r=t.sh.v;var i=t.transformers;var a;var s=r._length;var n;var o;var h;var l;if(s<=1){return}for(a=0;a<s-1;a+=1){n=this.getTransformedPoint(i,r.v[a]);o=this.getTransformedPoint(i,r.o[a]);h=this.getTransformedPoint(i,r.i[a+1]);l=this.getTransformedPoint(i,r.v[a+1]);this.checkBounds(n,o,h,l,e)}if(r.c){n=this.getTransformedPoint(i,r.v[a]);o=this.getTransformedPoint(i,r.o[a]);h=this.getTransformedPoint(i,r.i[0]);l=this.getTransformedPoint(i,r.v[0]);this.checkBounds(n,o,h,l,e)}};HShapeElement.prototype.checkBounds=function(t,e,r,i,a){this.getBoundsOfCurve(t,e,r,i);var s=this.shapeBoundingBox;a.x=bmMin(s.left,a.x);a.xMax=bmMax(s.right,a.xMax);a.y=bmMin(s.top,a.y);a.yMax=bmMax(s.bottom,a.yMax)};HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0};HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0};HShapeElement.prototype.getBoundsOfCurve=function(t,e,r,i){var a=[[t[0],i[0]],[t[1],i[1]]];for(var s,n,o,h,l,f,p,m=0;m<2;++m){n=6*t[m]-12*e[m]+6*r[m];s=-3*t[m]+9*e[m]-9*r[m]+3*i[m];o=3*e[m]-3*t[m];n|=0;s|=0;o|=0;if(s===0&&n===0);else if(s===0){h=-o/n;if(h>0&&h<1){a[m].push(this.calculateF(h,t,e,r,i,m))}}else{l=n*n-4*o*s;if(l>=0){f=(-n+bmSqrt(l))/(2*s);if(f>0&&f<1)a[m].push(this.calculateF(f,t,e,r,i,m));p=(-n-bmSqrt(l))/(2*s);if(p>0&&p<1)a[m].push(this.calculateF(p,t,e,r,i,m))}}}this.shapeBoundingBox.left=bmMin.apply(null,a[0]);this.shapeBoundingBox.top=bmMin.apply(null,a[1]);this.shapeBoundingBox.right=bmMax.apply(null,a[0]);this.shapeBoundingBox.bottom=bmMax.apply(null,a[1])};HShapeElement.prototype.calculateF=function(t,e,r,i,a,s){return bmPow(1-t,3)*e[s]+3*bmPow(1-t,2)*t*r[s]+3*(1-t)*bmPow(t,2)*i[s]+bmPow(t,3)*a[s]};HShapeElement.prototype.calculateBoundingBox=function(t,e){var r;var i=t.length;for(r=0;r<i;r+=1){if(t[r]&&t[r].sh){this.calculateShapeBoundingBox(t[r],e)}else if(t[r]&&t[r].it){this.calculateBoundingBox(t[r].it,e)}else if(t[r]&&t[r].style&&t[r].w){this.expandStrokeBoundingBox(t[r].w,e)}}};HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var i=0;i<t.keyframes.length;i+=1){var a=t.keyframes[i].s;if(a>r){r=a}}r*=t.mult}else{r=t.v*t.mult}e.x-=r;e.xMax+=r;e.y-=r;e.yMax+=r};HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height};HShapeElement.prototype.renderInnerContent=function(){this._renderShapeFrame();if(!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox;var e=999999;t.x=e;t.xMax=-e;t.y=e;t.yMax=-e;this.calculateBoundingBox(this.itemsData,t);t.width=t.xMax<t.x?0:t.xMax-t.x;t.height=t.yMax<t.y?0:t.yMax-t.y;if(this.currentBoxContains(t)){return}var r=false;if(this.currentBBox.w!==t.width){this.currentBBox.w=t.width;this.shapeCont.setAttribute("width",t.width);r=true}if(this.currentBBox.h!==t.height){this.currentBBox.h=t.height;this.shapeCont.setAttribute("height",t.height);r=true}if(r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width;this.currentBBox.h=t.height;this.currentBBox.x=t.x;this.currentBBox.y=t.y;this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style;var a="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=a;i.webkitTransform=a}}};function HTextElement(t,e,r){this.textSpans=[];this.textPaths=[];this.currentBBox={x:999999,y:-999999,h:0,w:0};this.renderType="svg";this.isMasked=false;this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement);HTextElement.prototype.createContent=function(){this.isMasked=this.checkMasks();if(this.isMasked){this.renderType="svg";this.compW=this.comp.data.w;this.compH=this.comp.data.h;this.svgElement.setAttribute("width",this.compW);this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t);this.innerElem=t}else{this.renderType="html";this.innerElem=this.layerElement}this.checkParenting()};HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style;var r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r;e.color=r;if(t.sc){e.stroke=this.buildColor(t.sc);e.strokeWidth=t.sw+"px"}var i=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars){e.fontSize=t.finalSize+"px";e.lineHeight=t.finalSize+"px";if(i.fClass){this.innerElem.className=i.fClass}else{e.fontFamily=i.fFamily;var a=t.fWeight;var s=t.fStyle;e.fontStyle=s;e.fontWeight=a}}var n;var o;var h=t.l;o=h.length;var l;var f;var p;var m=this.mHelper;var c;var u="";var d=0;for(n=0;n<o;n+=1){if(this.globalData.fontManager.chars){if(!this.textPaths[d]){l=createNS("path");l.setAttribute("stroke-linecap",lineCapEnum[1]);l.setAttribute("stroke-linejoin",lineJoinEnum[2]);l.setAttribute("stroke-miterlimit","4")}else{l=this.textPaths[d]}if(!this.isMasked){if(this.textSpans[d]){f=this.textSpans[d];p=f.children[0]}else{f=createTag("div");f.style.lineHeight=0;p=createNS("svg");p.appendChild(l);styleDiv(f)}}}else if(!this.isMasked){if(this.textSpans[d]){f=this.textSpans[d];l=this.textPaths[d]}else{f=createTag("span");styleDiv(f);l=createTag("span");styleDiv(l);f.appendChild(l)}}else{l=this.textPaths[d]?this.textPaths[d]:createNS("text")}if(this.globalData.fontManager.chars){var v=this.globalData.fontManager.getCharData(t.finalText[n],i.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);var y;if(v){y=v.data}else{y=null}m.reset();if(y&&y.shapes&&y.shapes.length){c=y.shapes[0].it;m.scale(t.finalSize/100,t.finalSize/100);u=this.createPathShape(m,c);l.setAttribute("d",u)}if(!this.isMasked){this.innerElem.appendChild(f);if(y&&y.shapes){document.body.appendChild(p);var g=p.getBBox();p.setAttribute("width",g.width+2);p.setAttribute("height",g.height+2);p.setAttribute("viewBox",g.x-1+" "+(g.y-1)+" "+(g.width+2)+" "+(g.height+2));var b=p.style;var P="translate("+(g.x-1)+"px,"+(g.y-1)+"px)";b.transform=P;b.webkitTransform=P;h[n].yOffset=g.y-1}else{p.setAttribute("width",1);p.setAttribute("height",1)}f.appendChild(p)}else{this.innerElem.appendChild(l)}}else{l.textContent=h[n].val;l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");if(!this.isMasked){this.innerElem.appendChild(f);var E=l.style;var x="translate3d(0,"+-t.finalSize/1.2+"px,0)";E.transform=x;E.webkitTransform=x}else{this.innerElem.appendChild(l)}}if(!this.isMasked){this.textSpans[d]=f}else{this.textSpans[d]=l}this.textSpans[d].style.display="block";this.textPaths[d]=l;d+=1}while(d<this.textSpans.length){this.textSpans[d].style.display="none";d+=1}};HTextElement.prototype.renderInnerContent=function(){var t;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag){return}if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH);t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e;t.webkitTransform=e}}this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);if(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag){return}var r;var i;var a=0;var s=this.textAnimator.renderedLetters;var n=this.textProperty.currentData.l;i=n.length;var o;var h;var l;for(r=0;r<i;r+=1){if(n[r].n){a+=1}else{h=this.textSpans[r];l=this.textPaths[r];o=s[a];a+=1;if(o._mdf.m){if(!this.isMasked){h.style.webkitTransform=o.m;h.style.transform=o.m}else{h.setAttribute("transform",o.m)}}h.style.opacity=o.o;if(o.sw&&o._mdf.sw){l.setAttribute("stroke-width",o.sw)}if(o.sc&&o._mdf.sc){l.setAttribute("stroke",o.sc)}if(o.fc&&o._mdf.fc){l.setAttribute("fill",o.fc);l.style.color=o.fc}}}if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var f=this.innerElem.getBBox();if(this.currentBBox.w!==f.width){this.currentBBox.w=f.width;this.svgElement.setAttribute("width",f.width)}if(this.currentBBox.h!==f.height){this.currentBBox.h=f.height;this.svgElement.setAttribute("height",f.height)}var p=1;if(this.currentBBox.w!==f.width+p*2||this.currentBBox.h!==f.height+p*2||this.currentBBox.x!==f.x-p||this.currentBBox.y!==f.y-p){this.currentBBox.w=f.width+p*2;this.currentBBox.h=f.height+p*2;this.currentBBox.x=f.x-p;this.currentBBox.y=f.y-p;this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);t=this.svgElement.style;var m="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=m;t.webkitTransform=m}}};function HCameraElement(t,e,r){this.initFrame();this.initBaseData(t,e,r);this.initHierarchy();var i=PropertyFactory.getProp;this.pe=i(this,t.pe,0,0,this);if(t.ks.p.s){this.px=i(this,t.ks.p.x,1,0,this);this.py=i(this,t.ks.p.y,1,0,this);this.pz=i(this,t.ks.p.z,1,0,this)}else{this.p=i(this,t.ks.p,1,0,this)}if(t.ks.a){this.a=i(this,t.ks.a,1,0,this)}if(t.ks.or.k.length&&t.ks.or.k[0].to){var a;var s=t.ks.or.k.length;for(a=0;a<s;a+=1){t.ks.or.k[a].to=null;t.ks.or.k[a].ti=null}}this.or=i(this,t.ks.or,1,degToRads,this);this.or.sh=true;this.rx=i(this,t.ks.rx,0,degToRads,this);this.ry=i(this,t.ks.ry,0,degToRads,this);this.rz=i(this,t.ks.rz,0,degToRads,this);this.mat=new Matrix;this._prevMat=new Matrix;this._isFirstFrame=true;this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement);HCameraElement.prototype.setup=function(){var t;var e=this.comp.threeDElements.length;var r;var i;var a;for(t=0;t<e;t+=1){r=this.comp.threeDElements[t];if(r.type==="3d"){i=r.perspectiveElem.style;a=r.container.style;var s=this.pe.v+"px";var n="0px 0px 0px";var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=s;i.webkitPerspective=s;a.transformOrigin=n;a.mozTransformOrigin=n;a.webkitTransformOrigin=n;i.transform=o;i.webkitTransform=o}}};HCameraElement.prototype.createElements=function(){};HCameraElement.prototype.hide=function(){};HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame;var e;var r;if(this.hierarchy){r=this.hierarchy.length;for(e=0;e<r;e+=1){t=this.hierarchy[e].finalTransform.mProp._mdf||t}}if(t||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){this.mat.reset();if(this.hierarchy){r=this.hierarchy.length-1;for(e=r;e>=0;e-=1){var i=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]);this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]);this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v);this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]);this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}}if(this.p){this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2])}else{this.mat.translate(-this.px.v,-this.py.v,this.pz.v)}if(this.a){var a;if(this.p){a=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]}else{a=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]]}var s=Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2));var n=[a[0]/s,a[1]/s,a[2]/s];var o=Math.sqrt(n[2]*n[2]+n[0]*n[0]);var h=Math.atan2(n[1],o);var l=Math.atan2(n[0],-n[2]);this.mat.rotateY(l).rotateX(-h)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v);this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]);this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0);this.mat.translate(0,0,this.pe.v);var f=!this._prevMat.equals(this.mat);if((f||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var p;var m;var c;for(e=0;e<r;e+=1){p=this.comp.threeDElements[e];if(p.type==="3d"){if(f){var u=this.mat.toCSS();c=p.container.style;c.transform=u;c.webkitTransform=u}if(this.pe._mdf){m=p.perspectiveElem.style;m.perspective=this.pe.v+"px";m.webkitPerspective=this.pe.v+"px"}}}this.mat.clone(this._prevMat)}}this._isFirstFrame=false};HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,true)};HCameraElement.prototype.destroy=function(){};HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId);this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement);HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);var e=new Image;if(this.data.hasMask){this.imageElem=createNS("image");this.imageElem.setAttribute("width",this.assetData.w+"px");this.imageElem.setAttribute("height",this.assetData.h+"px");this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t);this.layerElement.appendChild(this.imageElem);this.baseElement.setAttribute("width",this.assetData.w);this.baseElement.setAttribute("height",this.assetData.h)}else{this.layerElement.appendChild(e)}e.crossOrigin="anonymous";e.src=t;if(this.data.ln){this.baseElement.setAttribute("id",this.data.ln)}};function HybridRendererBase(t,e){this.animationItem=t;this.layers=null;this.renderedFrame=-1;this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&e.hideOnTransparent===false),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}};this.globalData={_mdf:false,frameNum:-1,renderConfig:this.renderConfig};this.pendingElements=[];this.elements=[];this.threeDElements=[];this.destroyed=false;this.camera=null;this.supports3d=true;this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase);HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem;HybridRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var t=this.pendingElements.pop();t.checkParenting()}};HybridRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(!r){return}var i=this.layers[e];if(!i.ddd||!this.supports3d){if(this.threeDElements){this.addTo3dContainer(r,e)}else{var a=0;var s;var n;var o;while(a<e){if(this.elements[a]&&this.elements[a]!==true&&this.elements[a].getBaseElement){n=this.elements[a];o=this.layers[a].ddd?this.getThreeDContainerByPos(a):n.getBaseElement();s=o||s}a+=1}if(s){if(!i.ddd||!this.supports3d){this.layerElement.insertBefore(r,s)}}else if(!i.ddd||!this.supports3d){this.layerElement.appendChild(r)}}}else{this.addTo3dContainer(r,e)}};HybridRendererBase.prototype.createShape=function(t){if(!this.supports3d){return new SVGShapeElement(t,this.globalData,this)}return new HShapeElement(t,this.globalData,this)};HybridRendererBase.prototype.createText=function(t){if(!this.supports3d){return new SVGTextLottieElement(t,this.globalData,this)}return new HTextElement(t,this.globalData,this)};HybridRendererBase.prototype.createCamera=function(t){this.camera=new HCameraElement(t,this.globalData,this);return this.camera};HybridRendererBase.prototype.createImage=function(t){if(!this.supports3d){return new IImageElement(t,this.globalData,this)}return new HImageElement(t,this.globalData,this)};HybridRendererBase.prototype.createSolid=function(t){if(!this.supports3d){return new ISolidElement(t,this.globalData,this)}return new HSolidElement(t,this.globalData,this)};HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull;HybridRendererBase.prototype.getThreeDContainerByPos=function(t){var e=0;var r=this.threeDElements.length;while(e<r){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t){return this.threeDElements[e].perspectiveElem}e+=1}return null};HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r=createTag("div");var i;var a;styleDiv(r);var s=createTag("div");styleDiv(s);if(e==="3d"){i=r.style;i.width=this.globalData.compSize.w+"px";i.height=this.globalData.compSize.h+"px";var n="50% 50%";i.webkitTransformOrigin=n;i.mozTransformOrigin=n;i.transformOrigin=n;a=s.style;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";a.transform=o;a.webkitTransform=o}r.appendChild(s);var h={container:s,perspectiveElem:r,startPos:t,endPos:t,type:e};this.threeDElements.push(h);return h};HybridRendererBase.prototype.build3dContainers=function(){var t;var e=this.layers.length;var r;var i="";for(t=0;t<e;t+=1){if(this.layers[t].ddd&&this.layers[t].ty!==3){if(i!=="3d"){i="3d";r=this.createThreeDContainer(t,"3d")}r.endPos=Math.max(r.endPos,t)}else{if(i!=="2d"){i="2d";r=this.createThreeDContainer(t,"2d")}r.endPos=Math.max(r.endPos,t)}}e=this.threeDElements.length;for(t=e-1;t>=0;t-=1){this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)}};HybridRendererBase.prototype.addTo3dContainer=function(t,e){var r=0;var i=this.threeDElements.length;while(r<i){if(e<=this.threeDElements[r].endPos){var a=this.threeDElements[r].startPos;var s;while(a<e){if(this.elements[a]&&this.elements[a].getBaseElement){s=this.elements[a].getBaseElement()}a+=1}if(s){this.threeDElements[r].container.insertBefore(t,s)}else{this.threeDElements[r].container.appendChild(t)}break}r+=1}};HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div");var r=this.animationItem.wrapper;var i=e.style;i.width=t.w+"px";i.height=t.h+"px";this.resizerElem=e;styleDiv(e);i.transformStyle="flat";i.mozTransformStyle="flat";i.webkitTransformStyle="flat";if(this.renderConfig.className){e.setAttribute("class",this.renderConfig.className)}r.appendChild(e);i.overflow="hidden";var a=createNS("svg");a.setAttribute("width","1");a.setAttribute("height","1");styleDiv(a);this.resizerElem.appendChild(a);var s=createNS("defs");a.appendChild(s);this.data=t;this.setupGlobalData(t,a);this.globalData.defs=s;this.layers=t.layers;this.layerElement=this.resizerElem;this.build3dContainers();this.updateContainerSize()};HybridRendererBase.prototype.destroy=function(){if(this.animationItem.wrapper){this.animationItem.wrapper.innerText=""}this.animationItem.container=null;this.globalData.defs=null;var t;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1){this.elements[t].destroy()}this.elements.length=0;this.destroyed=true;this.animationItem=null};HybridRendererBase.prototype.updateContainerSize=function(){var t=this.animationItem.wrapper.offsetWidth;var e=this.animationItem.wrapper.offsetHeight;var r=t/e;var i=this.globalData.compSize.w/this.globalData.compSize.h;var a;var s;var n;var o;if(i>r){a=t/this.globalData.compSize.w;s=t/this.globalData.compSize.w;n=0;o=(e-this.globalData.compSize.h*(t/this.globalData.compSize.w))/2}else{a=e/this.globalData.compSize.h;s=e/this.globalData.compSize.h;n=(t-this.globalData.compSize.w*(e/this.globalData.compSize.h))/2;o=0}var h=this.resizerElem.style;h.webkitTransform="matrix3d("+a+",0,0,0,0,"+s+",0,0,0,0,1,0,"+n+","+o+",0,1)";h.transform=h.webkitTransform};HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame;HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"};HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"};HybridRendererBase.prototype.initItems=function(){this.buildAllItems();if(this.camera){this.camera.setup()}else{var t=this.globalData.compSize.w;var e=this.globalData.compSize.h;var r;var i=this.threeDElements.length;for(r=0;r<i;r+=1){var a=this.threeDElements[r].perspectiveElem.style;a.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(e,2))+"px";a.perspective=a.webkitPerspective}}};HybridRendererBase.prototype.searchExtraCompositions=function(t){var e;var r=t.length;var i=createTag("div");for(e=0;e<r;e+=1){if(t[e].xt){var a=this.createComp(t[e],i,this.globalData.comp,null);a.initExpressions();this.globalData.projectInterface.registerComposition(a)}}};function HCompElement(t,e,r){this.layers=t.layers;this.supports3d=!t.hasMask;this.completeLayers=false;this.pendingElements=[];this.elements=this.layers?createSizedArray(this.layers.length):[];this.initElement(t,e,r);this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:true}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement);HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements;HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements();if(this.data.hasMask){this.svgElement.setAttribute("width",this.data.w);this.svgElement.setAttribute("height",this.data.h);this.transformedElement=this.baseElement}else{this.transformedElement=this.layerElement}};HCompElement.prototype.addTo3dContainer=function(t,e){var r=0;var i;while(r<e){if(this.elements[r]&&this.elements[r].getBaseElement){i=this.elements[r].getBaseElement()}r+=1}if(i){this.layerElement.insertBefore(t,i)}else{this.layerElement.appendChild(t)}};HCompElement.prototype.createComp=function(t){if(!this.supports3d){return new SVGCompElement(t,this.globalData,this)}return new HCompElement(t,this.globalData,this)};function HybridRenderer(t,e){this.animationItem=t;this.layers=null;this.renderedFrame=-1;this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&e.hideOnTransparent===false),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}};this.globalData={_mdf:false,frameNum:-1,renderConfig:this.renderConfig};this.pendingElements=[];this.elements=[];this.threeDElements=[];this.destroyed=false;this.camera=null;this.supports3d=true;this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer);HybridRenderer.prototype.createComp=function(t){if(!this.supports3d){return new SVGCompElement(t,this.globalData,this)}return new HCompElement(t,this.globalData,this)};const Expressions=function(){var t={};t.initExpressions=e;function e(t){var e=0;var r=[];function i(){e+=1}function a(){e-=1;if(e===0){n()}}function s(t){if(r.indexOf(t)===-1){r.push(t)}}function n(){var t;var e=r.length;for(t=0;t<e;t+=1){r[t].release()}r.length=0}t.renderer.compInterface=CompExpressionInterface(t.renderer);t.renderer.globalData.projectInterface.registerComposition(t.renderer);t.renderer.globalData.pushExpression=i;t.renderer.globalData.popExpression=a;t.renderer.globalData.registerExpressionProperty=s}return t}();function seedRandom(t,e){var r=this,i=256,a=6,s=52,n="random",o=e.pow(i,a),h=e.pow(2,s),l=h*2,f=i-1;function p(r,s,f){var p=[];s=s===true?{entropy:true}:s||{};var g=d(u(s.entropy?[r,y(t)]:r===null?v():r,3),p);var b=new m(p);var P=function(){var t=b.g(a),e=o,r=0;while(t<h){t=(t+r)*i;e*=i;r=b.g(1)}while(t>=l){t/=2;e/=2;r>>>=1}return(t+r)/e};P.int32=function(){return b.g(4)|0};P.quick=function(){return b.g(4)/4294967296};P.double=P;d(y(b.S),t);return(s.pass||f||function(t,r,i,a){if(a){if(a.S){c(a,b)}t.state=function(){return c(b,{})}}if(i){e[n]=t;return r}else return t})(P,g,"global"in s?s.global:this==e,s.state)}e["seed"+n]=p;function m(t){var e,r=t.length,a=this,s=0,n=a.i=a.j=0,o=a.S=[];if(!r){t=[r++]}while(s<i){o[s]=s++}for(s=0;s<i;s++){o[s]=o[n=f&n+t[s%r]+(e=o[s])];o[n]=e}a.g=function(t){var e,r=0,s=a.i,n=a.j,o=a.S;while(t--){e=o[s=f&s+1];r=r*i+o[f&(o[s]=o[n=f&n+e])+(o[n]=e)]}a.i=s;a.j=n;return r}}function c(t,e){e.i=t.i;e.j=t.j;e.S=t.S.slice();return e}function u(t,e){var r=[],i=typeof t,a;if(e&&i=="object"){for(a in t){try{r.push(u(t[a],e-1))}catch(t){}}}return r.length?r:i=="string"?t:t+"\0"}function d(t,e){var r=t+"",i,a=0;while(a<r.length){e[f&a]=f&(i^=e[f&a]*19)+r.charCodeAt(a++)}return y(e)}function v(){try{var e=new Uint8Array(i);(r.crypto||r.msCrypto).getRandomValues(e);return y(e)}catch(e){var a=r.navigator,s=a&&a.plugins;return[+new Date,r,s,r.screen,y(t)]}}function y(t){return String.fromCharCode.apply(0,t)}d(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};const ExpressionManager=function(){var ob={};var Math=BMMath;var window=null;var document=null;var XMLHttpRequest=null;var fetch=null;var frames=null;initialize$2(BMMath);function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return t==="number"||t==="boolean"||t==="string"||e instanceof Number}function $bm_neg(t){var e=typeof t;if(e==="number"||e==="boolean"||t instanceof Number){return-t}if($bm_isInstanceOfArray(t)){var r;var i=t.length;var a=[];for(r=0;r<i;r+=1){a[r]=-t[r]}return a}if(t.propType){return t.v}return-t}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get;var easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get;var easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var r=typeof t;var i=typeof e;if(r==="string"||i==="string"){return t+e}if(isNumerable(r,t)&&isNumerable(i,e)){return t+e}if($bm_isInstanceOfArray(t)&&isNumerable(i,e)){t=t.slice(0);t[0]+=e;return t}if(isNumerable(r,t)&&$bm_isInstanceOfArray(e)){e=e.slice(0);e[0]=t+e[0];return e}if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){var a=0;var s=t.length;var n=e.length;var o=[];while(a<s||a<n){if((typeof t[a]==="number"||t[a]instanceof Number)&&(typeof e[a]==="number"||e[a]instanceof Number)){o[a]=t[a]+e[a]}else{o[a]=e[a]===undefined?t[a]:t[a]||e[a]}a+=1}return o}return 0}var add=sum;function sub(t,e){var r=typeof t;var i=typeof e;if(isNumerable(r,t)&&isNumerable(i,e)){if(r==="string"){t=parseInt(t,10)}if(i==="string"){e=parseInt(e,10)}return t-e}if($bm_isInstanceOfArray(t)&&isNumerable(i,e)){t=t.slice(0);t[0]-=e;return t}if(isNumerable(r,t)&&$bm_isInstanceOfArray(e)){e=e.slice(0);e[0]=t-e[0];return e}if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){var a=0;var s=t.length;var n=e.length;var o=[];while(a<s||a<n){if((typeof t[a]==="number"||t[a]instanceof Number)&&(typeof e[a]==="number"||e[a]instanceof Number)){o[a]=t[a]-e[a]}else{o[a]=e[a]===undefined?t[a]:t[a]||e[a]}a+=1}return o}return 0}function mul(t,e){var r=typeof t;var i=typeof e;var a;if(isNumerable(r,t)&&isNumerable(i,e)){return t*e}var s;var n;if($bm_isInstanceOfArray(t)&&isNumerable(i,e)){n=t.length;a=createTypedArray("float32",n);for(s=0;s<n;s+=1){a[s]=t[s]*e}return a}if(isNumerable(r,t)&&$bm_isInstanceOfArray(e)){n=e.length;a=createTypedArray("float32",n);for(s=0;s<n;s+=1){a[s]=t*e[s]}return a}return 0}function div(t,e){var r=typeof t;var i=typeof e;var a;if(isNumerable(r,t)&&isNumerable(i,e)){return t/e}var s;var n;if($bm_isInstanceOfArray(t)&&isNumerable(i,e)){n=t.length;a=createTypedArray("float32",n);for(s=0;s<n;s+=1){a[s]=t[s]/e}return a}if(isNumerable(r,t)&&$bm_isInstanceOfArray(e)){n=e.length;a=createTypedArray("float32",n);for(s=0;s<n;s+=1){a[s]=t/e[s]}return a}return 0}function mod(t,e){if(typeof t==="string"){t=parseInt(t,10)}if(typeof e==="string"){e=parseInt(e,10)}return t%e}var $bm_sum=sum;var $bm_sub=sub;var $bm_mul=mul;var $bm_div=div;var $bm_mod=mod;function clamp(t,e,r){if(e>r){var i=r;r=e;e=i}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees;var helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t==="number"||t instanceof Number){e=e||0;return Math.abs(t-e)}if(!e){e=helperLengthArray}var r;var i=Math.min(t.length,e.length);var a=0;for(r=0;r<i;r+=1){a+=Math.pow(e[r]-t[r],2)}return Math.sqrt(a)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e=t[0];var r=t[1];var i=t[2];var a=Math.max(e,r,i);var s=Math.min(e,r,i);var n;var o;var h=(a+s)/2;if(a===s){n=0;o=0}else{var l=a-s;o=h>.5?l/(2-a-s):l/(a+s);switch(a){case e:n=(r-i)/l+(r<i?6:0);break;case r:n=(i-e)/l+2;break;case i:n=(e-r)/l+4;break;default:break}n/=6}return[n,o,h,t[3]]}function hue2rgb(t,e,r){if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)return t+(e-t)*6*r;if(r<1/2)return e;if(r<2/3)return t+(e-t)*(2/3-r)*6;return t}function hslToRgb(t){var e=t[0];var r=t[1];var i=t[2];var a;var s;var n;if(r===0){a=i;n=i;s=i}else{var o=i<.5?i*(1+r):i+r-i*r;var h=2*i-o;a=hue2rgb(h,o,e+1/3);s=hue2rgb(h,o,e);n=hue2rgb(h,o,e-1/3)}return[a,s,n,t[3]]}function linear(t,e,r,i,a){if(i===undefined||a===undefined){i=e;a=r;e=0;r=1}if(r<e){var s=r;r=e;e=s}if(t<=e){return i}if(t>=r){return a}var n=r===e?0:(t-e)/(r-e);if(!i.length){return i+(a-i)*n}var o;var h=i.length;var l=createTypedArray("float32",h);for(o=0;o<h;o+=1){l[o]=i[o]+(a[o]-i[o])*n}return l}function random(t,e){if(e===undefined){if(t===undefined){t=0;e=1}else{e=t;t=undefined}}if(e.length){var r;var i=e.length;if(!t){t=createTypedArray("float32",i)}var a=createTypedArray("float32",i);var s=BMMath.random();for(r=0;r<i;r+=1){a[r]=t[r]+s*(e[r]-t[r])}return a}if(t===undefined){t=0}var n=BMMath.random();return t+n*(e-t)}function createPath(t,e,r,i){var a;var s=t.length;var n=shapePool.newElement();n.setPathData(!!i,s);var o=[0,0];var h;var l;for(a=0;a<s;a+=1){h=e&&e[a]?e[a]:o;l=r&&r[a]?r[a]:o;n.setTripleAt(t[a][0],t[a][1],l[0]+t[a][0],l[1]+t[a][1],h[0]+t[a][0],h[1]+t[a][1],a,true)}return n}function initiateExpression(elem,data,property){var val=data.x;var needsVelocity=/velocity(?![\w\d])/.test(val);var _needsRandom=val.indexOf("random")!==-1;var elemType=elem.data.ty;var transform;var $bm_transform;var content;var effect;var thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime;Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}});elem.comp.frameDuration=1/elem.comp.globalData.frameRate;elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate;var outPoint=elem.data.op/elem.comp.globalData.frameRate;var width=elem.data.sw?elem.data.sw:0;var height=elem.data.sh?elem.data.sh:0;var name=elem.data.nm;var loopIn;var loop_in;var loopOut;var loop_out;var smooth;var toWorld;var fromWorld;var fromComp;var toComp;var fromCompToSurface;var position;var rotation;var anchorPoint;var scale;var thisLayer;var thisComp;var mask;var valueAtTime;var velocityAtTime;var scoped_bm_rt;var expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0];var numKeys=property.kf?data.k.length:0;var active=!this.data||this.data.hd!==true;var wiggle=function t(e,r){var i;var a;var s=this.pv.length?this.pv.length:1;var n=createTypedArray("float32",s);e=5;var o=Math.floor(time*e);i=0;a=0;while(i<o){for(a=0;a<s;a+=1){n[a]+=-r+r*2*BMMath.random()}i+=1}var h=time*e;var l=h-Math.floor(h);var f=createTypedArray("float32",s);if(s>1){for(a=0;a<s;a+=1){f[a]=this.pv[a]+n[a]+(-r+r*2*BMMath.random())*l}return f}return this.pv+n[0]+(-r+r*2*BMMath.random())*l}.bind(this);if(thisProperty.loopIn){loopIn=thisProperty.loopIn.bind(thisProperty);loop_in=loopIn}if(thisProperty.loopOut){loopOut=thisProperty.loopOut.bind(thisProperty);loop_out=loopOut}if(thisProperty.smooth){smooth=thisProperty.smooth.bind(thisProperty)}function loopInDuration(t,e){return loopIn(t,e,true)}function loopOutDuration(t,e){return loopOut(t,e,true)}if(this.getValueAtTime){valueAtTime=this.getValueAtTime.bind(this)}if(this.getVelocityAtTime){velocityAtTime=this.getVelocityAtTime.bind(this)}var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]];var i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;var a=-Math.atan2(r[1],r[2])/degToRads;return[a,i,0]}function easeOut(t,e,r,i,a){return applyEase(easeOutBez,t,e,r,i,a)}function easeIn(t,e,r,i,a){return applyEase(easeInBez,t,e,r,i,a)}function ease(t,e,r,i,a){return applyEase(easeInOutBez,t,e,r,i,a)}function applyEase(t,e,r,i,a,s){if(a===undefined){a=r;s=i}else{e=(e-r)/(i-r)}if(e>1){e=1}else if(e<0){e=0}var n=t(e);if($bm_isInstanceOfArray(a)){var o;var h=a.length;var l=createTypedArray("float32",h);for(o=0;o<h;o+=1){l[o]=(s[o]-a[o])*n+a[o]}return l}return(s-a)*n+a}function nearestKey(t){var e;var r=data.k.length;var i;var a;if(!data.k.length||typeof data.k[0]==="number"){i=0;a=0}else{i=-1;t*=elem.comp.globalData.frameRate;if(t<data.k[0].t){i=1;a=data.k[0].t}else{for(e=0;e<r-1;e+=1){if(t===data.k[e].t){i=e+1;a=data.k[e].t;break}else if(t>data.k[e].t&&t<data.k[e+1].t){if(t-data.k[e].t>data.k[e+1].t-t){i=e+2;a=data.k[e+1].t}else{i=e+1;a=data.k[e].t}break}}if(i===-1){i=e+1;a=data.k[e].t}}}var s={};s.index=i;s.time=a/elem.comp.globalData.frameRate;return s}function key(t){var e;var r;var i;if(!data.k.length||typeof data.k[0]==="number"){throw new Error("The property has no keyframe at index "+t)}t-=1;e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var a=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;i=a.length;for(r=0;r<i;r+=1){e[r]=a[r];e.value[r]=a[r]}return e}function framesToTime(t,e){if(!e){e=elem.comp.globalData.frameRate}return t/e}function timeToFrames(t,e){if(!t&&t!==0){t=time}if(!e){e=elem.comp.globalData.frameRate}return t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){if(typeof value==="string"){if(e===undefined){return value.substring(t)}return value.substring(t,e)}return""}function substr(t,e){if(typeof value==="string"){if(e===undefined){return value.substr(t)}return value.substr(t,e)}return""}function posterizeTime(t){time=t===0?0:Math.floor(time*t)/t;value=valueAtTime(time)}var time;var velocity;var value;var text;var textIndex;var textTotal;var selectorValue;var index=elem.data.ind;var hasParent=!!(elem.hierarchy&&elem.hierarchy.length);var parent;var randSeed=Math.floor(Math.random()*1e6);var globalData=elem.globalData;function executeExpression(t){value=t;if(this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"){return value}if(this.propType==="textSelector"){textIndex=this.textIndex;textTotal=this.textTotal;selectorValue=this.selectorValue}if(!thisLayer){text=elem.layerInterface.text;thisLayer=elem.layerInterface;thisComp=elem.comp.compInterface;toWorld=thisLayer.toWorld.bind(thisLayer);fromWorld=thisLayer.fromWorld.bind(thisLayer);fromComp=thisLayer.fromComp.bind(thisLayer);toComp=thisLayer.toComp.bind(thisLayer);mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null;fromCompToSurface=fromComp}if(!transform){transform=elem.layerInterface("ADBE Transform Group");$bm_transform=transform;if(transform){anchorPoint=transform.anchorPoint}}if(elemType===4&&!content){content=thisLayer("ADBE Root Vectors Group")}if(!effect){effect=thisLayer(4)}hasParent=!!(elem.hierarchy&&elem.hierarchy.length);if(hasParent&&!parent){parent=elem.hierarchy[0].layerInterface}time=this.comp.renderedFrame/this.comp.globalData.frameRate;if(_needsRandom){seedRandom(randSeed+time)}if(needsVelocity){velocity=velocityAtTime(time)}expression_function();this.frameExpressionId=elem.globalData.frameId;scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt;return scoped_bm_rt}executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData];return executeExpression}ob.initiateExpression=initiateExpression;ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath];return ob}();const expressionHelpers=function(){function t(t,e,r){if(e.x){r.k=true;r.x=true;r.initiateExpression=ExpressionManager.initiateExpression;r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r))}}function e(t){t*=this.elem.globalData.frameRate;t-=this.offsetTime;if(t!==this._cachingAtTime.lastFrame){this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0;this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime);this._cachingAtTime.lastFrame=t}return this._cachingAtTime.value}function r(t){var e=-.01;var r=this.getValueAtTime(t);var i=this.getValueAtTime(t+e);var a=0;if(r.length){var s;for(s=0;s<r.length;s+=1){a+=Math.pow(i[s]-r[s],2)}a=Math.sqrt(a)*100}else{a=0}return a}function i(t){if(this.vel!==undefined){return this.vel}var e=-.001;var r=this.getValueAtTime(t);var i=this.getValueAtTime(t+e);var a;if(r.length){a=createTypedArray("float32",r.length);var s;for(s=0;s<r.length;s+=1){a[s]=(i[s]-r[s])/e}}else{a=(i-r)/e}return a}function a(){return this.pv}function s(t){this.propertyGroup=t}return{searchExpressions:t,getSpeedAtTime:r,getVelocityAtTime:i,getValueAtTime:e,getStaticValueAtTime:a,setGroupProperty:s}}();function addPropertyDecorator(){function t(t,e,r){if(!this.k||!this.keyframes){return this.pv}t=t?t.toLowerCase():"";var i=this.comp.renderedFrame;var a=this.keyframes;var s=a[a.length-1].t;if(i<=s){return this.pv}var n;var o;if(!r){if(!e||e>a.length-1){e=a.length-1}o=a[a.length-1-e].t;n=s-o}else{if(!e){n=Math.max(0,s-this.elem.data.ip)}else{n=Math.abs(s-this.elem.comp.globalData.frameRate*e)}o=s-n}var h;var l;var f;if(t==="pingpong"){var p=Math.floor((i-o)/n);if(p%2!==0){return this.getValueAtTime((n-(i-o)%n+o)/this.comp.globalData.frameRate,0)}}else if(t==="offset"){var m=this.getValueAtTime(o/this.comp.globalData.frameRate,0);var c=this.getValueAtTime(s/this.comp.globalData.frameRate,0);var u=this.getValueAtTime(((i-o)%n+o)/this.comp.globalData.frameRate,0);var d=Math.floor((i-o)/n);if(this.pv.length){f=new Array(m.length);l=f.length;for(h=0;h<l;h+=1){f[h]=(c[h]-m[h])*d+u[h]}return f}return(c-m)*d+u}else if(t==="continue"){var v=this.getValueAtTime(s/this.comp.globalData.frameRate,0);var y=this.getValueAtTime((s-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){f=new Array(v.length);l=f.length;for(h=0;h<l;h+=1){f[h]=v[h]+(v[h]-y[h])*((i-s)/this.comp.globalData.frameRate)/5e-4}return f}return v+(v-y)*((i-s)/.001)}return this.getValueAtTime(((i-o)%n+o)/this.comp.globalData.frameRate,0)}function e(t,e,r){if(!this.k){return this.pv}t=t?t.toLowerCase():"";var i=this.comp.renderedFrame;var a=this.keyframes;var s=a[0].t;if(i>=s){return this.pv}var n;var o;if(!r){if(!e||e>a.length-1){e=a.length-1}o=a[e].t;n=o-s}else{if(!e){n=Math.max(0,this.elem.data.op-s)}else{n=Math.abs(this.elem.comp.globalData.frameRate*e)}o=s+n}var h;var l;var f;if(t==="pingpong"){var p=Math.floor((s-i)/n);if(p%2===0){return this.getValueAtTime(((s-i)%n+s)/this.comp.globalData.frameRate,0)}}else if(t==="offset"){var m=this.getValueAtTime(s/this.comp.globalData.frameRate,0);var c=this.getValueAtTime(o/this.comp.globalData.frameRate,0);var u=this.getValueAtTime((n-(s-i)%n+s)/this.comp.globalData.frameRate,0);var d=Math.floor((s-i)/n)+1;if(this.pv.length){f=new Array(m.length);l=f.length;for(h=0;h<l;h+=1){f[h]=u[h]-(c[h]-m[h])*d}return f}return u-(c-m)*d}else if(t==="continue"){var v=this.getValueAtTime(s/this.comp.globalData.frameRate,0);var y=this.getValueAtTime((s+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){f=new Array(v.length);l=f.length;for(h=0;h<l;h+=1){f[h]=v[h]+(v[h]-y[h])*(s-i)/.001}return f}return v+(v-y)*(s-i)/.001}return this.getValueAtTime((n-((s-i)%n+s))/this.comp.globalData.frameRate,0)}function r(t,e){if(!this.k){return this.pv}t=(t||.4)*.5;e=Math.floor(e||5);if(e<=1){return this.pv}var r=this.comp.renderedFrame/this.comp.globalData.frameRate;var i=r-t;var a=r+t;var s=e>1?(a-i)/(e-1):1;var n=0;var o=0;var h;if(this.pv.length){h=createTypedArray("float32",this.pv.length)}else{h=0}var l;while(n<e){l=this.getValueAtTime(i+n*s);if(this.pv.length){for(o=0;o<this.pv.length;o+=1){h[o]+=l[o]}}else{h+=l}n+=1}if(this.pv.length){for(o=0;o<this.pv.length;o+=1){h[o]/=e}}else{h/=e}return h}function i(t){if(!this._transformCachingAtTime){this._transformCachingAtTime={v:new Matrix}}var e=this._transformCachingAtTime.v;e.cloneFromProps(this.pre.props);if(this.appliedTransformations<1){var r=this.a.getValueAtTime(t);e.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var i=this.s.getValueAtTime(t);e.scale(i[0]*this.s.mult,i[1]*this.s.mult,i[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var a=this.sk.getValueAtTime(t);var s=this.sa.getValueAtTime(t);e.skewFromAxis(-a*this.sk.mult,s*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var n=this.r.getValueAtTime(t);e.rotate(-n*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(t);var h=this.ry.getValueAtTime(t);var l=this.rx.getValueAtTime(t);var f=this.or.getValueAtTime(t);e.rotateZ(-o*this.rz.mult).rotateY(h*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-f[2]*this.or.mult).rotateY(f[1]*this.or.mult).rotateX(f[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(t);var m=this.py.getValueAtTime(t);if(this.data.p.z){var c=this.pz.getValueAtTime(t);e.translate(p*this.px.mult,m*this.py.mult,-c*this.pz.mult)}else{e.translate(p*this.px.mult,m*this.py.mult,0)}}else{var u=this.p.getValueAtTime(t);e.translate(u[0]*this.p.mult,u[1]*this.p.mult,-u[2]*this.p.mult)}return e}function a(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,r){var n=s(t,e,r);if(n.dynamicProperties.length){n.getValueAtTime=i.bind(n)}else{n.getValueAtTime=a.bind(n)}n.setGroupProperty=expressionHelpers.setGroupProperty;return n};var n=PropertyFactory.getProp;PropertyFactory.getProp=function(i,a,s,o,h){var l=n(i,a,s,o,h);if(l.kf){l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l)}else{l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l)}l.setGroupProperty=expressionHelpers.setGroupProperty;l.loopOut=t;l.loopIn=e;l.smooth=r;l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l);l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l);l.numKeys=a.a===1?a.k.length:0;l.propertyIndex=a.ix;var f=0;if(s!==0){f=createTypedArray("float32",a.a===1?a.k[0].s.length:a.k.length)}l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:f};expressionHelpers.searchExpressions(i,a,l);if(l.k){h.addDynamicProperty(l)}return l};function o(t){if(!this._cachingAtTime){this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}}t*=this.elem.globalData.frameRate;t-=this.offsetTime;if(t!==this._cachingAtTime.lastTime){this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0;this._cachingAtTime.lastTime=t;this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)}return this._cachingAtTime.shapeValue}var h=ShapePropertyFactory.getConstructorFunction();var l=ShapePropertyFactory.getKeyframedConstructorFunction();function f(){}f.prototype={vertices:function(t,e){if(this.k){this.getValue()}var r=this.v;if(e!==undefined){r=this.getValueAtTime(e,0)}var i;var a=r._length;var s=r[t];var n=r.v;var o=createSizedArray(a);for(i=0;i<a;i+=1){if(t==="i"||t==="o"){o[i]=[s[i][0]-n[i][0],s[i][1]-n[i][1]]}else{o[i]=[s[i][0],s[i][1]]}}return o},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var r=this.v;if(e!==undefined){r=this.getValueAtTime(e,0)}if(!this._segmentsLength){this._segmentsLength=bez.getSegmentsLength(r)}var i=this._segmentsLength;var a=i.lengths;var s=i.totalLength*t;var n=0;var o=a.length;var h=0;var l;while(n<o){if(h+a[n].addedLength>s){var f=n;var p=r.c&&n===o-1?0:n+1;var m=(s-h)/a[n].addedLength;l=bez.getPointInSegment(r.v[f],r.v[p],r.o[f],r.i[p],m,a[n]);break}else{h+=a[n].addedLength}n+=1}if(!l){l=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]}return l},vectorOnPath:function(t,e,r){if(t==1){t=this.v.c}else if(t==0){t=.999}var i=this.pointOnPath(t,e);var a=this.pointOnPath(t+.001,e);var s=a[0]-i[0];var n=a[1]-i[1];var o=Math.sqrt(Math.pow(s,2)+Math.pow(n,2));if(o===0){return[0,0]}var h=r==="tangent"?[s/o,n/o]:[-n/o,s/o];return h},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime};extendPrototype([f],h);extendPrototype([f],l);l.prototype.getValueAtTime=o;l.prototype.initiateExpression=ExpressionManager.initiateExpression;var p=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,r,i,a){var s=p(t,e,r,i,a);s.propertyIndex=e.ix;s.lock=false;if(r===3){expressionHelpers.searchExpressions(t,e.pt,s)}else if(r===4){expressionHelpers.searchExpressions(t,e.ks,s)}if(s.k){t.addDynamicProperty(s)}return s}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){if(this.data.d.x){this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this);this.addEffect(this.getExpressionValue.bind(this));return true}return null}TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t!==r){var i={};this.copyData(i,t);i.t=r.toString();i.__complete=false;return i}return t};TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes();var e=this.searchExpressions();this.kf=t||e;return this.kf};TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:(t,e)=>{var r=createNS("feMerge");r.setAttribute("result",t);var i;var a;for(a=0;a<e.length;a+=1){i=createNS("feMergeNode");i.setAttribute("in",e[a]);r.appendChild(i);r.appendChild(i)}return r}};function SVGTintFilter(t,e,r,i,a){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix");s.setAttribute("color-interpolation-filters","linearRGB");s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0");s.setAttribute("result",i+"_tint_1");t.appendChild(s);s=createNS("feColorMatrix");s.setAttribute("type","matrix");s.setAttribute("color-interpolation-filters","sRGB");s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0");s.setAttribute("result",i+"_tint_2");t.appendChild(s);this.matrixFilter=s;var n=this.createMergeNode(i,[a,i+"_tint_1",i+"_tint_2"]);t.appendChild(n)}extendPrototype([SVGComposableEffect],SVGTintFilter);SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v;var r=this.filterManager.effectElements[1].p.v;var i=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}};function SVGFillFilter(t,e,r,i){this.filterManager=e;var a=createNS("feColorMatrix");a.setAttribute("type","matrix");a.setAttribute("color-interpolation-filters","sRGB");a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0");a.setAttribute("result",i);t.appendChild(a);this.matrixFilter=a}SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v;var r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}};function SVGStrokeEffect(t,e,r){this.initialized=false;this.filterManager=e;this.elem=r;this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var t=this.elem.layerElement.children||this.elem.layerElement.childNodes;var e;var r;var i;var a;if(this.filterManager.effectElements[1].p.v===1){a=this.elem.maskManager.masksProperties.length;i=0}else{i=this.filterManager.effectElements[0].p.v-1;a=i+1}r=createNS("g");r.setAttribute("fill","none");r.setAttribute("stroke-linecap","round");r.setAttribute("stroke-dashoffset",1);for(i;i<a;i+=1){e=createNS("path");r.appendChild(e);this.paths.push({p:e,m:i})}if(this.filterManager.effectElements[10].p.v===3){var s=createNS("mask");var n=createElementID();s.setAttribute("id",n);s.setAttribute("mask-type","alpha");s.appendChild(r);this.elem.globalData.defs.appendChild(s);var o=createNS("g");o.setAttribute("mask","url("+getLocationHref()+"#"+n+")");while(t[0]){o.appendChild(t[0])}this.elem.layerElement.appendChild(o);this.masker=s;r.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2){t=this.elem.layerElement.children||this.elem.layerElement.childNodes;while(t.length){this.elem.layerElement.removeChild(t[0])}}this.elem.layerElement.appendChild(r);this.elem.layerElement.removeAttribute("mask");r.setAttribute("stroke","#fff")}this.initialized=true;this.pathMasker=r};SVGStrokeEffect.prototype.renderFrame=function(t){if(!this.initialized){this.initialize()}var e;var r=this.paths.length;var i;var a;for(e=0;e<r;e+=1){if(this.paths[e].m!==-1){i=this.elem.maskManager.viewData[this.paths[e].m];a=this.paths[e].p;if(t||this.filterManager._mdf||i.prop._mdf){a.setAttribute("d",i.lastPath)}if(t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf){var s;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var n=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01;var o=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01;var h=a.getTotalLength();s="0 0 0 "+h*n+" ";var l=h*(o-n);var f=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;var p=Math.floor(l/f);var m;for(m=0;m<p;m+=1){s+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" "}s+="0 "+h*10+" 0 0"}else{s="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01}a.setAttribute("stroke-dasharray",s)}}}if(t||this.filterManager.effectElements[4].p._mdf){this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2)}if(t||this.filterManager.effectElements[6].p._mdf){this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v)}if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(t||this.filterManager.effectElements[3].p._mdf){var c=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(c[0]*255)+","+bmFloor(c[1]*255)+","+bmFloor(c[2]*255)+")")}}};function SVGTritoneFilter(t,e,r,i){this.filterManager=e;var a=createNS("feColorMatrix");a.setAttribute("type","matrix");a.setAttribute("color-interpolation-filters","linearRGB");a.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0");t.appendChild(a);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB");s.setAttribute("result",i);this.matrixFilter=s;var n=createNS("feFuncR");n.setAttribute("type","table");s.appendChild(n);this.feFuncR=n;var o=createNS("feFuncG");o.setAttribute("type","table");s.appendChild(o);this.feFuncG=o;var h=createNS("feFuncB");h.setAttribute("type","table");s.appendChild(h);this.feFuncB=h;t.appendChild(s)}SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v;var r=this.filterManager.effectElements[1].p.v;var i=this.filterManager.effectElements[2].p.v;var a=i[0]+" "+r[0]+" "+e[0];var s=i[1]+" "+r[1]+" "+e[1];var n=i[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",a);this.feFuncG.setAttribute("tableValues",s);this.feFuncB.setAttribute("tableValues",n)}};function SVGProLevelsFilter(t,e,r,i){this.filterManager=e;var a=this.filterManager.effectElements;var s=createNS("feComponentTransfer");if(a[10].p.k||a[10].p.v!==0||a[11].p.k||a[11].p.v!==1||a[12].p.k||a[12].p.v!==1||a[13].p.k||a[13].p.v!==0||a[14].p.k||a[14].p.v!==1){this.feFuncR=this.createFeFunc("feFuncR",s)}if(a[17].p.k||a[17].p.v!==0||a[18].p.k||a[18].p.v!==1||a[19].p.k||a[19].p.v!==1||a[20].p.k||a[20].p.v!==0||a[21].p.k||a[21].p.v!==1){this.feFuncG=this.createFeFunc("feFuncG",s)}if(a[24].p.k||a[24].p.v!==0||a[25].p.k||a[25].p.v!==1||a[26].p.k||a[26].p.v!==1||a[27].p.k||a[27].p.v!==0||a[28].p.k||a[28].p.v!==1){this.feFuncB=this.createFeFunc("feFuncB",s)}if(a[31].p.k||a[31].p.v!==0||a[32].p.k||a[32].p.v!==1||a[33].p.k||a[33].p.v!==1||a[34].p.k||a[34].p.v!==0||a[35].p.k||a[35].p.v!==1){this.feFuncA=this.createFeFunc("feFuncA",s)}if(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA){s.setAttribute("color-interpolation-filters","sRGB");t.appendChild(s)}if(a[3].p.k||a[3].p.v!==0||a[4].p.k||a[4].p.v!==1||a[5].p.k||a[5].p.v!==1||a[6].p.k||a[6].p.v!==0||a[7].p.k||a[7].p.v!==1){s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB");s.setAttribute("result",i);t.appendChild(s);this.feFuncRComposed=this.createFeFunc("feFuncR",s);this.feFuncGComposed=this.createFeFunc("feFuncG",s);this.feFuncBComposed=this.createFeFunc("feFuncB",s)}}SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);r.setAttribute("type","table");e.appendChild(r);return r};SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,i,a){var s=0;var n=256;var o;var h=Math.min(t,e);var l=Math.max(t,e);var f=Array.call(null,{length:n});var p;var m=0;var c=a-i;var u=e-t;while(s<=256){o=s/256;if(o<=h){p=u<0?a:i}else if(o>=l){p=u<0?i:a}else{p=i+c*Math.pow((o-t)/u,1/r)}f[m]=p;m+=1;s+=256/(n-1)}return f.join(" ")};SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e;var r=this.filterManager.effectElements;if(this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)){e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v);this.feFuncRComposed.setAttribute("tableValues",e);this.feFuncGComposed.setAttribute("tableValues",e);this.feFuncBComposed.setAttribute("tableValues",e)}if(this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)){e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v);this.feFuncR.setAttribute("tableValues",e)}if(this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)){e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v);this.feFuncG.setAttribute("tableValues",e)}if(this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)){e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v);this.feFuncB.setAttribute("tableValues",e)}if(this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)){e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v);this.feFuncA.setAttribute("tableValues",e)}}};function SVGDropShadowEffect(t,e,r,i,a){var s=e.container.globalData.renderConfig.filterSize;var n=e.data.fs||s;t.setAttribute("x",n.x||s.x);t.setAttribute("y",n.y||s.y);t.setAttribute("width",n.width||s.width);t.setAttribute("height",n.height||s.height);this.filterManager=e;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha");o.setAttribute("result",i+"_drop_shadow_1");o.setAttribute("stdDeviation","0");this.feGaussianBlur=o;t.appendChild(o);var h=createNS("feOffset");h.setAttribute("dx","25");h.setAttribute("dy","0");h.setAttribute("in",i+"_drop_shadow_1");h.setAttribute("result",i+"_drop_shadow_2");this.feOffset=h;t.appendChild(h);var l=createNS("feFlood");l.setAttribute("flood-color","#00ff00");l.setAttribute("flood-opacity","1");l.setAttribute("result",i+"_drop_shadow_3");this.feFlood=l;t.appendChild(l);var f=createNS("feComposite");f.setAttribute("in",i+"_drop_shadow_3");f.setAttribute("in2",i+"_drop_shadow_2");f.setAttribute("operator","in");f.setAttribute("result",i+"_drop_shadow_4");t.appendChild(f);var p=this.createMergeNode(i,[i+"_drop_shadow_4",a]);t.appendChild(p)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect);SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if(t||this.filterManager.effectElements[4].p._mdf){this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4)}if(t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(e[0]*255),Math.round(e[1]*255),Math.round(e[2]*255)))}if(t||this.filterManager.effectElements[1].p._mdf){this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255)}if(t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v;var i=(this.filterManager.effectElements[2].p.v-90)*degToRads;var a=r*Math.cos(i);var s=r*Math.sin(i);this.feOffset.setAttribute("dx",a);this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=false;this.filterManager=e;this.filterElem=t;this.elem=r;r.matteElement=createNS("g");r.matteElement.appendChild(r.layerElement);r.matteElement.appendChild(r.transformedElement);r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(t){var e=0;var r=_svgMatteSymbols.length;while(e<r){if(_svgMatteSymbols[e]===t){return _svgMatteSymbols[e]}e+=1}return null};SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(!r){return}var i=r.children;var a=0;var s=i.length;while(a<s){if(i[a]===t.layerElement){break}a+=1}var n;if(a<=s-2){n=i[a+1]}var o=createNS("use");o.setAttribute("href","#"+e);if(n){r.insertBefore(o,n)}else{r.appendChild(o)}};SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID();var i=createNS("mask");i.setAttribute("id",e.layerId);i.setAttribute("mask-type","alpha");_svgMatteSymbols.push(e);var a=t.globalData.defs;a.appendChild(i);var s=createNS("symbol");s.setAttribute("id",r);this.replaceInParent(e,r);s.appendChild(e.layerElement);a.appendChild(s);var n=createNS("use");n.setAttribute("href","#"+r);i.appendChild(n);e.data.hd=false;e.show()}t.setMatte(e.layerId)};SVGMatte3Effect.prototype.initialize=function(){var t=this.filterManager.effectElements[0].p.v;var e=this.elem.comp.elements;var r=0;var i=e.length;while(r<i){if(e[r]&&e[r].data.ind===t){this.setElementAsMask(this.elem,e[r])}r+=1}this.initialized=true};SVGMatte3Effect.prototype.renderFrame=function(){if(!this.initialized){this.initialize()}};function SVGGaussianBlurEffect(t,e,r,i){t.setAttribute("x","-100%");t.setAttribute("y","-100%");t.setAttribute("width","300%");t.setAttribute("height","300%");this.filterManager=e;var a=createNS("feGaussianBlur");a.setAttribute("result",i);t.appendChild(a);this.feGaussianBlur=a}SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3;var r=this.filterManager.effectElements[0].p.v*e;var i=this.filterManager.effectElements[1].p.v;var a=i==3?0:r;var s=i==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+s);var n=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}};registerRenderer("canvas",CanvasRenderer);registerRenderer("html",HybridRenderer);registerRenderer("svg",SVGRenderer);ShapeModifiers.registerModifier("tm",TrimModifier);ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier);ShapeModifiers.registerModifier("rp",RepeaterModifier);ShapeModifiers.registerModifier("rd",RoundCornersModifier);setExpressionsPlugin(Expressions);initialize$1();initialize();registerEffect(20,SVGTintFilter,true);registerEffect(21,SVGFillFilter,true);registerEffect(22,SVGStrokeEffect,false);registerEffect(23,SVGTritoneFilter,true);registerEffect(24,SVGProLevelsFilter,true);registerEffect(25,SVGDropShadowEffect,true);registerEffect(28,SVGMatte3Effect,false);registerEffect(29,SVGGaussianBlurEffect,true);exports.Lottie=lottie})(this.BX.UI=this.BX.UI||{});
//# sourceMappingURL=lottie.bundle.map.js